Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse not recognising code changes
Eclipse not recognising code changes [message #728480] Fri, 23 September 2011 10:43 Go to next message
selina.tindall is currently offline selina.tindallFriend
Messages: 1
Registered: September 2011
Junior Member
Hi,

I keep getting an issue where Eclipse is not recognising when I make changes to a class. I run the class with the new changes and it still appears as the old one did. Even when I try and debug the class it steps through empty lines or comments, where code used to be.

I have tried refreshing, cleaning, building all to no avail.


Separately (but perhaps related), I also have a problem where if I clean a project, the target-eclipse folder empties but doesn't get rebuilt. Whether I do a complete build of the workspace or just the project, it still doesn't get built. This has happened several times and is usually resolved by 'randomly' being populated somewhere downt he line (my build automatically setting is set to true).

Any help would be much appreciated.

Regards,
Selina
Re: Eclipse not recognising code changes [message #730159 is a reply to message #728480] Tue, 27 September 2011 17:50 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 9/23/11 6:43 AM, selina.tindall wrote:
> Hi,
>
> I keep getting an issue where Eclipse is not recognising when I make
> changes to a class. I run the class with the new changes and it still
> appears as the old one did. Even when I try and debug the class it steps
> through empty lines or comments, where code used to be.
>
> I have tried refreshing, cleaning, building all to no avail.

That sounds like the Launch Configuration you're using to run your app
is referencing a JAR instead of the project directly. Eclipse doesn't
generally build JARs, so if the runtime classpath of a Launch
Configuration is pointed at a JAR, it won't see coding changes unless
you rebuild the JAR it's pointed to. The normal situation is that the
Launch Configuration references a project (or projects) directly, and
thus sees all code changes autoamtically (that's assuming that the
project builds successfully, of course).
The easiest way I can think of to test/remedy that is to delete the
Launch Configuration and re-create it by selecting the project or the
main class and choosing Run As... (that's assuming it's a "plain" Java
project; if it's some other kind of app then there are different, but
similar, ways to re-create the launch configuration).


> Separately (but perhaps related), I also have a problem where if I clean
> a project, the target-eclipse folder empties but doesn't get rebuilt.
> Whether I do a complete build of the workspace or just the project, it
> still doesn't get built. This has happened several times and is usually
> resolved by 'randomly' being populated somewhere downt he line (my build
> automatically setting is set to true).
>
> Any help would be much appreciated.

That sounds like you have some build path error on the project. Eclipse
will report such errors in the Problems view, and in the Java Build Path
section of the project properties dialog.

Eric
Previous Topic:Having trouble adding new JSP page to my google app engine project.
Next Topic:Basics in C
Goto Forum:
  


Current Time: Thu Apr 25 16:56:06 GMT 2024

Powered by FUDForum. Page generated in 0.08194 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top