Solved

HELP! Eclipse failing to build after returning to 1.4

Posted on 2006-07-24
10
195 Views
Last Modified: 2010-08-05
Dear Experts,

HELP!  I'm in the middle of converting my Eclipse app from 1.4 to 5. Previously, I had been able to go to Java Compiler, and swap the "compiler compliance level" from 1.4 to 5, and BACK, and it worked fine.  Now, it SAYS it's doing a build, but it's not producing any classes when I swap back to 1.4.  (And it's taking one second, instead of the usual five seconds.)

In the Package Explorer window, my project DOES show a red "x", but none of the source files is similarly marked.  I have checked that my libraries are all there, and they are.  I have deleted all the classes, and tried to rebuild, but no luck.  And I have tried making trivial changes to code, in case the compiler felt nothing had changed, but no luck there, either.

HELP!  

Thanks,
BrianMc1958
0
Comment
Question by:BrianMc1958
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 14

Expert Comment

by:StillUnAware
ID: 17168360
Recreate a project using the old source files, but first copy the source to some safe place
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17168392
make sure you haven't removed it from the build path
0
 
LVL 30

Accepted Solution

by:
mayankeagle earned 500 total points
ID: 17168416
Goto Window -> Show View -> Problems log to see what the errors are in the first place.
0
 

Author Comment

by:BrianMc1958
ID: 17168515
The build path seems OK, although it does still reference the jre1.5...  The "Problems" log doesn't show any errors within this particular project.  I haven't tried recreating the project with old source yet, because that makes me scared and I'm not quite that desperate yet.  (I'm still a bit of a newbie at Eclipse...)
0
 
LVL 30

Expert Comment

by:mayankeagle
ID: 17168540
>> The build path seems OK, although it does still reference the jre1.5...

It should reference 1.4 if that is what you want. Right-click on the project, goto Properties -> Java Build Path -> Libaries tab -> remove the JRE 5 library and click on Add Library -> JRE System library, then select the 1.4 one.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 30

Expert Comment

by:mayankeagle
ID: 17168578
>> I haven't tried recreating the project with old source yet, because that makes me scared and I'm not quite that desperate yet.

It should work with the existing project. Just make sure you back-up the source-code files in some directory, just in case ;-)
0
 

Author Comment

by:BrianMc1958
ID: 17168584
At this point, it won't re-build even when I switch back to 5.0.  (I did not have to manually change the JRE library previously.  I just set the "compiler compliance level.")
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 17168608
Do your other projects build?
0
 

Author Comment

by:BrianMc1958
ID: 17168705
Um, no.  Nothing buids now.  What have I done?
0
 

Author Comment

by:BrianMc1958
ID: 17168890
Sorry to have wasted your time again, folks.  It seems Windows got confused about a lock on my output classes directory.

For anyone reading this, I'm accepting mayankeagle's response here because it was close (and I didn't know about it before!)  In my case, though, I needed not "Problems" but "Error Log".  Apparently, if the build itself fails to run, that's where it dumps the message.

Thanks again, everybody...
--BrianMc1958
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now