• 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

Eclipse, NoClassDefFoundError: java/lang/Object

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can compile project (yes, rt.jar is included in the classpath), but getting exception when running or debugging:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
What could it be?
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What version of Eclipse are you using, and on what operating system platform? And what Java version?
Have you created the simplest possible application and tried that?
Have you tried to unzip the Eclipse distribution one more time and trying it again from scratch?

By the way Irene, would you please take a look at JavaRanch's Naming Policy and change your displayed name accordingly.
Thanks,
-Barry
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eclipse is not able to find tools.jar due to conflicting JREs and/or SDK. Add $JAVA_HOME/lib/tools.jar to the and build classpath. Hope that helps
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eclipse lost its JRE definition.
in your project->properties->build path
select the 'libraries' tab, and then the button 'add library'
from there - add your jre and press ok.
If 'ok' is disabled - there's some sort of a collision. read the
line at the top of the window to find out what you need to remove.
hope this helps.
nimo.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic