I got a error to run a java class under win2k command window
The error is:
Exception in thread "main" java.lang.NoClassDefFoundError: Test
The java class is very simple:
public class Test {
public static void main(String[] args) {
System.out.println("test");
}
}
jdk: j2se 1.5.0
w*******g 发帖数: 9932
2
did you set the classpath to include the current directory "."?
【在 d*r 的大作中提到】 : I got a error to run a java class under win2k command window : The error is: : Exception in thread "main" java.lang.NoClassDefFoundError: Test : The java class is very simple: : public class Test { : public static void main(String[] args) { : System.out.println("test"); : } : } : jdk: j2se 1.5.0