Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Error compiling java file
Error compiling java file [message #51841] Mon, 07 April 2003 19:16 Go to next message
Eclipse UserFriend
Originally posted by: sole.hotmail.com

When I try to run a java file the console show me the following message:

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

I download de jdk 1.3 and in the: Window --> Preferences --> Java -->
Classpath Variables I create the variable JAVA wich point to the jdk\bin
folder.

Can anyone help me??
I don't know what I make wrong...
Re: Error compiling java file [message #51893 is a reply to message #51841] Tue, 08 April 2003 00:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sandumtl.comnet.ca

I hope you don't run a java file but a class file. When seting the
environment, set the following:

set JAVA_HOME=the_path_to_jdk_directory (for instance c:\jdk1.3.1_07)
set CLASSPATH=.;%JAVA_HOME%\lib\tools.jar
set PATH=%PATH%;%JAVA_HOME%\bin


soledad wrote:
> When I try to run a java file the console show me the following message:
>
> Error occurred during initialization of VM
> java/lang/NoClassDefFoundError: java/lang/Object
>
> I download de jdk 1.3 and in the: Window --> Preferences --> Java -->
> Classpath Variables I create the variable JAVA wich point to the jdk\bin
> folder.
>
> Can anyone help me??
> I don't know what I make wrong...
>
Re: Error compiling java file [message #51945 is a reply to message #51841] Tue, 08 April 2003 07:28 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

soledad wrote:

>When I try to run a java file the console show me the following message:
>
>Error occurred during initialization of VM
>java/lang/NoClassDefFoundError: java/lang/Object
>
>I download de jdk 1.3 and in the: Window --> Preferences --> Java -->
>Classpath Variables I create the variable JAVA wich point to the jdk\bin
>folder.
>
I assume that the build path of your project (see project's properties)
does not contain a valid SDK. Where did you read that you have to add a
classpath variable called "JAVA"? This would be wrong doc.

Dani
Re: Error compiling java file [message #592630 is a reply to message #51841] Tue, 08 April 2003 00:11 Go to previous message
Eclipse UserFriend
Originally posted by: sandumtl.comnet.ca

I hope you don't run a java file but a class file. When seting the
environment, set the following:

set JAVA_HOME=the_path_to_jdk_directory (for instance c:\jdk1.3.1_07)
set CLASSPATH=.;%JAVA_HOME%\lib\tools.jar
set PATH=%PATH%;%JAVA_HOME%\bin


soledad wrote:
> When I try to run a java file the console show me the following message:
>
> Error occurred during initialization of VM
> java/lang/NoClassDefFoundError: java/lang/Object
>
> I download de jdk 1.3 and in the: Window --> Preferences --> Java -->
> Classpath Variables I create the variable JAVA wich point to the jdk\bin
> folder.
>
> Can anyone help me??
> I don't know what I make wrong...
>
Re: Error compiling java file [message #592658 is a reply to message #51841] Tue, 08 April 2003 07:28 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

soledad wrote:

>When I try to run a java file the console show me the following message:
>
>Error occurred during initialization of VM
>java/lang/NoClassDefFoundError: java/lang/Object
>
>I download de jdk 1.3 and in the: Window --> Preferences --> Java -->
>Classpath Variables I create the variable JAVA wich point to the jdk\bin
>folder.
>
I assume that the build path of your project (see project's properties)
does not contain a valid SDK. Where did you read that you have to add a
classpath variable called "JAVA"? This would be wrong doc.

Dani
Previous Topic:Avoiding huge download of Eclipse 2.1
Next Topic:when hot code replacement fails
Goto Forum:
  


Current Time: Sat Nov 09 02:26:33 GMT 2024

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

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

Back to the top