Classpath problem? [message #81226] |
Tue, 29 July 2003 05:20  |
Eclipse User |
|
|
|
Originally posted by: hoofpatje.hotmail.com
Hi,
I am starting to use Eclipse as development environment for Java, but I get
following error when compiling a simple Java program:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
I have installed Java 2 runtime environment and SDK.
What is wrong? All help very much appreciated.
Ho do I set the classpath variable correctly?
Patrick
|
|
|
|
Re: Classpath problem? [message #81749 is a reply to message #81418] |
Wed, 30 July 2003 05:15  |
Eclipse User |
|
|
|
Originally posted by: hoofpatje.hotmail.com
Anou,
Tha nks for your help. However... I select my project properties and the
Java Build Path settings. Under the Libraries tab there is one library,
JRE_LIB which refers to the rt.jar under my j2re installation.
Still I can't get it to work.
Patrick
> Right click on your project, go to the properties - JavaBuildPath and
check
> if you have JRE system library. If not ( I am sure its not ), click on
> AddLibrary button and choose the JRE system library.
>
> -Anou
>
>
> "Patrick Vanhoof" <hoofpatje@hotmail.com> wrote in message
> news:bg5e8i$kpk$1@eclipse.org...
> > Hi,
> >
> > I am starting to use Eclipse as development environment for Java, but I
> get
> > following error when compiling a simple Java program:
> >
> > Error occurred during initialization of VM
> >
> > java/lang/NoClassDefFoundError: java/lang/Object
> >
> > I have installed Java 2 runtime environment and SDK.
> >
> > What is wrong? All help very much appreciated.
> > Ho do I set the classpath variable correctly?
> >
> > Patrick
> >
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02750 seconds