where is the file named "testHello.class"? the directory which involves the class should be contained in the classpath. this error message means your class isn't found.
我在e盘下建目录,保存文件e:\123\testHello.java ,先进e: cd 123 ,cd wfl ,java testHello.java 就出现结果Exception int hread "main"java.lang.NoClassDefFoundError:testHellO/java 我在任意条件下运行java -version ,javac -h等都正确
the directory which involves the class should be contained in the classpath.
this error message means your class isn't found.
我在任意条件下运行java -version ,javac -h等都正确
javac testHello.java执行:
java testHello (不是: java testHello.java)