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? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -