Solved

HELP! Eclipse failing to build after returning to 1.4

Posted on 2006-07-24
10
206 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:
Mayank S 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:Mayank S
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 30

Expert Comment

by:Mayank S
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
topping3 challenge 14 70
JAVA part two 5 58
Error with Java/Cache JDBC Classpath 2 31
why cannot we forward request once the response is committed 2 33
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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:

896 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

16 Experts available now in Live!

Get 1:1 Help Now