当前位置: 技术问答>java相关
菜鸟我要提问了。关于编译的问题
来源: 互联网 发布时间:2015-06-26
本文导语: 出现如下的错误是何原因 exception in thread "main" java.lang.NoClassDefFoundError | 你的类路经设置错误! SET CLASSPATH ..... | javac aaa.java java aaa there must hava a public class named aaa in file aaa....
出现如下的错误是何原因
exception in thread "main" java.lang.NoClassDefFoundError
exception in thread "main" java.lang.NoClassDefFoundError
|
你的类路经设置错误!
SET CLASSPATH .....
SET CLASSPATH .....
|
javac aaa.java
java aaa
there must hava a public class named aaa in file aaa.java
java aaa
there must hava a public class named aaa in file aaa.java
|
类设置错误,重设一下试试!
|
设置一下:
PATH=%PATH%C:JDK1.3
SET PATH=C:JDK1.3BINTOOLS.JAR C:JDK1.3
PATH=%PATH%C:JDK1.3
SET PATH=C:JDK1.3BINTOOLS.JAR C:JDK1.3