Error compiling java file [message #51841] |
Mon, 07 April 2003 19:16 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04425 seconds