java.lang.NoClassDefFoundError when using console -


i have problem execution of programs console. throws java.lang.noclassdeffounderror if run same application netbeans works perfectly.what can do?

you can add classpath in java providing option "-cp" or "-classpath" while running java program.

set classpath there shown below :

 set classpath=.;/com/test/classes   java -cp $classpath test 

by default java classpath points current directory denoted "." , class in current directory.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -