Compile error

P

Patrick Vanhoof

Hi,

I am starting to use Eclipse as development environment for Java. When I
compile a small simple Java program I get the error below. Anyone knows what
is wrong? All help very much appreciated.

Error occurred during initialization of VM

java/lang/NoClassDefFoundError: java/lang/Object
 
N

Neomorph

Hi,

I am starting to use Eclipse as development environment for Java. When I
compile a small simple Java program I get the error below. Anyone knows what
is wrong? All help very much appreciated.

Error occurred during initialization of VM

java/lang/NoClassDefFoundError: java/lang/Object

Since this is a base java class, it looks like the environment is missing
the classpath completely.
Check which JDK is on your system. I'm not sure if Eclipse comes with one,
or if you have to use a seperate one with it, which means you may have to
set Eclipse up to use it.

I've never used Eclipse before, still hung up on Visual Café (4.0).

Cheers.
 
J

Jens Andersen

I had to import the rt.jar (it's in <JDK path>/jre/lib) library manually
to get rid of that error.

- Jens
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top