This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Compilation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Compilation error" Watch "Compilation error" New topic
Author

Compilation error

Siddhesh Khedekar
Ranch Hand

Joined: Nov 09, 2009
Posts: 37
Hello Experts,

Yesterday I changed my eclipse.ini file to following since my eclipse was not starting.




But when I start my eclipse I am getting lot errors like simple BufferedWriter cannot be resolved to a type or Exception cannot be resolved to a type.

I tried to added JAVA_HOME to C:/Program Files/Java/jdk1.6.0_16 in classpath variables, but still I get errors in my java files.

I think somethings missing.

ANy Idea.
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Not sure - try Project-> Java Build Path-> Libraries -> Edit JRE -> set workspace JRE from installed JRE option.
Siddhesh Khedekar
Ranch Hand

Joined: Nov 09, 2009
Posts: 37
I tried but still the same errors.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Does C:\Program Files\Java\jdk1.6.0_16\jre\lib\rt.jar exist?

Try adding -verbose:class as the last lin in eclipse.ini and run eclipsec.exe instead. Run it from the command line and redirect the output to a file:



Make sure you run Eclipse to the point where it generates those errors. Then zip up the output.txt file and attach it to you response.

By the way, two suggestions:
1) Upgrade to a more recent version of the JDK 1.6.0_16 is really old, you should try 1.6.0_26 or higher.
2) Don't install into Program Files. Spaces in path names cause all kinds of strange problems.


JBoss In Action
 
GeeCON Prague 2014
 
subject: Compilation error