jQuery in Action, 2nd edition*
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 Android Security Essentials Live Lessons this week in the Android forum!
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: 36
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: 36
I tried but still the same errors.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Compilation error
 
Similar Threads
Eclipse is running in a JRE, but a JDK is required
Java + JOGL / Java3D
eclipse3.5 giving OutOfMemory/Permgen after installing plugin for Spring IDE
AbstractTransactionalJUnit4SpringContextTests cannot be resolved to a type
Hi, problem on reinstalling the eclipse galileo.