WTP don't compile change [message #168305] |
Tue, 02 May 2006 15:19 |
Eclipse User |
|
|
|
Originally posted by: scauvi.publicis.fr
Hi,
In a very small and simple WTP web project that ran successfully on JBoss
I add a new method in a class of the project. Then it was impossible to
get this method to be executed. I finally watched the .class file, the new
method wasn't in the compiled class, the class hasn't been compiled after
the code changed. I tryed to build the project again, move the method in
the class, close eclipse, open eclipse, close and open the project,
publish the project, etc, etc. I was unable to get this class compiled
again with the new code, I even deleted the class file from the build
directory and now when I run the project after it was published again,
logicaly, I get a ClassNotFoundExeption!
I lost a hudge amount of time with this silly and crazy problem, does
someone could help me to solve this big problem: Making this class to get
compiled within this Eclipse/Wtp project? Should I use Netbean, command
line Javac instead maybe?
Steph.
|
|
|
|
|
Re: WTP don't compile change [message #171366 is a reply to message #168305] |
Fri, 16 June 2006 07:03 |
Eclipse User |
|
|
|
Originally posted by: marx.nospam_wasko.pl
Stephane Cauvi napisa?(a):
>
> Hi,
>
> In a very small and simple WTP web project that ran successfully on
> JBoss I add a new method in a class of the project. Then it was
> impossible to get this method to be executed. I finally watched the
> .class file, the new method wasn't in the compiled class, the class
> hasn't been compiled after the code changed. I tryed to build the
> project again, move the method in the class, close eclipse, open
> eclipse, close and open the project, publish the project, etc, etc. I
> was unable to get this class compiled again with the new code, I even
> deleted the class file from the build directory and now when I run the
> project after it was published again, logicaly, I get a
> ClassNotFoundExeption!
>
> I lost a hudge amount of time with this silly and crazy problem, does
> someone could help me to solve this big problem: Making this class to
> get compiled within this Eclipse/Wtp project? Should I use Netbean,
> command line Javac instead maybe?
>
> Steph.
>
Change your classpath, for example add/remove some .jar file from project
Look also at "errors" (windows->show view->errors)
Eclipse is stupid and if you for example delete jar it needs to compile
some classes, it deletes all classes without any warning. The same when
Eclipse need rebuild project, and you are using one of folders in
classes directory - then Eclipse isn't able to delete classes folder and
will not rebuild project at all.
Marx
|
|
|
Powered by
FUDForum. Page generated in 0.03658 seconds