Solved

HELP! Eclipse failing to build after returning to 1.4

Posted on 2006-07-24
10
229 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
throw exception 21 66
How to determine if a string is a valid SHA value 7 43
learn programming 8 66
Tomcat 9 + java 8 error while trying to deploy a war file 2 676
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
This video teaches viewers about errors in exception handling.

680 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