Re: [eclipse-users] Java Interface: java.lang.NoClassDefFoundError

From: Joachim Schimpf <js10_at_crosscoreop.com>
Date: Wed, 07 Mar 2007 01:44:59 +0000
Ismael Ojeda wrote:
> my computer is a AMD semprom 3300+ with  windows XP Home edition, 
> Service pack 2, 
>  
>  I just Install JDK 1.6.0 and eclipse 5.10.52,  after compiling,  in 
> ms-dos "cmd" with:
>  
> *       javac -classpath c:/program 
> files/java/jdk1.6.0/src.zip;c:/program 
> files/eclipsev510/lib/eclipse.jar  quicktest.java*
> ** 
> and for running:
>  
> *        java -Declipse.directory="c:/program files/eclipsev510" *
> *                -classpath c:/program 
> files/java/jdk1.6.0/src.zip;c:/program files/eclipsev510/eclipse.jar  
> quicktest*
>  
> and return:
> 
>        *  Exception in thread "main"  java.lang.NoClassDefFoundError: 
> quicktest*


You need to add a "." to the classpath when running:

java -Declipse.directory="c:/program files/eclipsev510"
      -classpath .;"c:/program files/eclipsev510/eclipse.jar" quicktest



-- Joachim
Received on Wed Mar 07 2007 - 01:45:33 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:57 CET