hi, my friend just installed java 1.5.0_10 and after that we changed the path variable to be able to compile thru command line after that when we tried it compiling files work, but for some reason when we tried to run that class file it keeps giving us NoClassDefError "Exception in thread "main" java.lang.NoClassDefFoundError: Test" any help will be appreciated
you have to change the path and classpath. the path is where the java command is the classpath is where the classes and jars are change the classpath or compile with: java -cp .;C:/Somewhere/AnyJar.jar Program.java where the . means "this directory"