« Return to Thread: NoClassDefFoundError

Re: NoClassDefFoundError

by Michel Graciano :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
The path environment variable don't work for this. you need pass the jar files for your program when executing in command line, with -cp option for java command (I presume that you are trying run the program with java -jar <jarfile>.jar).

On 4/30/06, John <johnbell@...> wrote:


Michel Graciano wrote:
How are you ruuning you program in command line? The problem is that you have some jar that need to be added to your classpath. When you run inside IDE, the IDE do that for you.


Thanks very much, even if I to add the classpath to my PATH environment variable, what I would like is a standalone program, how do I compile that in NetBeans?




--
Atenciosamente,

Michel Graciano
KSI Soluções em Informática Ltda.
http://www.jroller.com/page/hmichel
http://translatedfiles.netbeans.org/index_pt_BR.html
https://copypastehistory.dev.java.net/
https://jae.dev.java.net/

 « Return to Thread: NoClassDefFoundError