469,353 Members | 2,053 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,353 developers. It's quick & easy.

Compile error

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


Jul 17 '05 #1
3 13752
On Mon, 28 Jul 2003 10:25:57 +0200, "Patrick Vanhoof"
<ho*******@hotmail.com> wrote or quoted :
java/lang/NoClassDefFoundError: java/lang/Object


see http://mindprod.com/jgloss/errormess...SDEFFOUNDERROR

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Jul 17 '05 #2
On Mon, 28 Jul 2003 10:25:57 +0200, "Patrick Vanhoof"
<ho*******@hotmail.com> two-finger typed:
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.
Jul 17 '05 #3
I had to import the rt.jar (it's in <JDK path>/jre/lib) library manually
to get rid of that error.

- Jens

Ashley Griffiths wrote:
Make sure that you have an SDK installed, and check that your project
contains that SDK as a library.

To make sure your project is set up correctly do the following .....

Go to your Project Properties (Right-click> Properties) go to the libraries
tab, click Add Library, select JRE system library, then click next. This
should give you a drop down of your systems JRE's...if so select it and
click finish...if not, click new, and fill in the deatils for your system
JRE. This should sort out your problems for you.
"Patrick Vanhoof" <ho*******@hotmail.com> wrote in message
news:3f*********************@reader1.news.skynet.b e...
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


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.504 / Virus Database: 302 - Release Date: 24/07/2003


Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Danny Boelens | last post: by
5 posts views Thread by Carmine Cairo | last post: by
5 posts views Thread by Brice Prunier | last post: by
10 posts views Thread by Chris LaJoie | last post: by
6 posts views Thread by Thomas Connolly | last post: by
reply views Thread by Jim Heavey | last post: by
2 posts views Thread by BruceWho | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.