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

From: Joachim Schimpf <js10_at_...2...>
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.3.0 : Tue Apr 16 2024 - 09:13:19 CEST