|
|
|
|
|
|
|
|
|
Re: Weird, why is some previous version of a class running [message #1703627 is a reply to message #1703553] |
Mon, 03 August 2015 17:47 |
Eric Rizzo Messages: 3070 Registered: July 2009 |
Senior Member |
|
|
Let me establish a few baseline facts that might help you understand better what's going on and then help us help you.
- Eclipse automatically builds your project(s) whenever you save a source file; mostly "build" means compile the Java code into .class files, but there can be other steps, too.
- If there are any project errors or compilation problems, Eclipse might not produce a .class file, depending on how severe the problems are.
- The Problems or Markers views in Eclipse are the best place to see the current state of your project(s) with regard to build errors.
- As Ed mentioned, Eclipse's Resource Navigator view will show you a "physical" representation of your workspace, much like what Windows Explorer shows.
- You can use Project > Clean... from the menu to force Eclipse to clean the compiled code and re-build it.
- When you run your application/program in Eclipse, it creates (or re-uses) what's called a Launch Configuration to create the runtime settings, such as runtime classpath, VM arguments, etc. You can view the Launch Configs via the Run > Run Configurations... dialog from the menu. There you can inspect how your program is being run.
So, does your Problems (or Markers) view show any errors on the project or the file you're working with?
Can you take a screenshot of the Run Configuration for your program and share that? (also inspect it yourself to see if there's anything obviously suspicious in it).
|
|
|
|
|
|
Re: Weird, why is some previous version of a class running [message #1703785 is a reply to message #1703782] |
Wed, 05 August 2015 02:15 |
Eric Rizzo Messages: 3070 Registered: July 2009 |
Senior Member |
|
|
Well you've looked in the right places, but the results are unexpected (to me at least). The screen shot of the Markers view says the project has build path errors, but when you look at the build path it doesn't show any errors. <smh/>
There is something odd in the build path, though, maybe it's related: the .classpath file should not be listed under Libraries. Select and remove it, then click OK and see if the Error goes away (from the Markers view). Might even try Project > Clean after that, although it really shouldn't be necessary.
Also, your screen shot of the Markers view says there are 2 errors and a bunch of warnings; can you show/tell us what the other error is?
By the way, the absence of .class files is because
a) you did Project > Clean, which deletes the contents of the build output folder (bin/ in your case), and
b) Eclipse thinks the project configuration is broken and can't compile it. Once we figure out what that's all about, it will start building the .class files again (automatically).
|
|
|
Re: Weird, why is some previous version of a class running [message #1703800 is a reply to message #1703785] |
Wed, 05 August 2015 06:04 |
|
.classpath is the file that stores and defines what the Java Build Path is, it shouldn't actually be listed on the Java Build Path.
Can you show us the contents of the .classpath file? My suspicion is that the src folder itself may not be listed as a Source Folder in there.
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08895 seconds