• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Compilation error

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried but still the same errors.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic