Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compilation error

 
Siddhesh Khedekar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure - try Project-> Java Build Path-> Libraries -> Edit JRE -> set workspace JRE from installed JRE option.
 
Siddhesh Khedekar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried but still the same errors.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic