Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JVM Launcher

  Asked By: Raynard    Date: Oct 05    Category: Java    Views: 826
  

when i try to execute a java program. i get the following error:

JVM Launcher
java.lang.NoClassDefFoundError:
Djava/library/path=o:\Programme\eclipse-SDK-3/0-win32
\eclipse/plugins/org/eclipse/swt/win32_3/0/0/os/win32/x86
Exception in thread "main"

could somebody help me whats the problem? thanks in advance.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Isra Demir     Answered On: Oct 05

This is a classpath problem.
Hacing your source / classes folder included in the project should fix the
problem.

Do you get NoClassDef for one of your classes or is it for eclipse classes.
Let us know if you still face any problems.

 
Answer #2    Answered By: Abrianna Rossi     Answered On: Oct 05

To make it more convenient add the following classpath in the
startup file on your OS. For example, autoexec.bat on windows:

set CLASSPATH=.;c:\jdk\lib\tools.jar;%CLASSPATH%

Having done so you need to only restart your pc once.
This will ensure all your programs run. You can check
the current classpath by running SET at command prompt.

In case, you like the command prompt you can run using:
java -classpath yourclasspath ApplnClass

Now, all you need to do is compile your .java file and run it.

 
Didn't find what you were looking for? Find more on JVM Launcher Or get search suggestion and latest updates.




Tagged: