This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma 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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Compilation error" Watch "Compilation error" New topic

Compilation error

Siddhesh Khedekar
Ranch Hand

Joined: Nov 09, 2009
Posts: 42
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

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: 42
I tried but still the same errors.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

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
I agree. Here's the link:
subject: Compilation error
It's not a secret anymore!