Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Classpath problem?
Classpath problem? [message #81226] Tue, 29 July 2003 05:20 Go to next message
Eclipse UserFriend
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 #81418 is a reply to message #81226] Tue, 29 July 2003 10:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amanaval.sybase.com

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
>
>
>
Re: Classpath problem? [message #81749 is a reply to message #81418] Wed, 30 July 2003 05:15 Go to previous message
Eclipse UserFriend
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
> >
> >
> >
>
>
Previous Topic:API for setting a project's javadoc location
Next Topic:How I want to refresh local programmatically
Goto Forum:
  


Current Time: Wed Jun 04 01:16:21 EDT 2025

Powered by FUDForum. Page generated in 0.02750 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top