当前位置: 技术问答>java相关
请教:如何正确的配置jdk1.3.1的环境??
来源: 互联网 发布时间:2015-10-29
本文导语: 我已经设置了classpath、path但是运行 D:JBuilder7jdk1.3.1bin>javac d:codejavaHelloWorld.java D:JBuilder7jdk1.3.1bin>java HelloWorld Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld 请问“Exception in thread "main" java.lang.NoClassDefFound...
我已经设置了classpath、path但是运行
D:JBuilder7jdk1.3.1bin>javac d:codejavaHelloWorld.java
D:JBuilder7jdk1.3.1bin>java HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
请问“Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld”该如何解决?
D:JBuilder7jdk1.3.1bin>javac d:codejavaHelloWorld.java
D:JBuilder7jdk1.3.1bin>java HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
请问“Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld”该如何解决?
|
classpath: D:JBuilder7jdk1.3.1bin
|
或者在classpath中加个“.”
classpath: .;D:JBuilder7jdk1.3.1bin
classpath: .;D:JBuilder7jdk1.3.1bin
|
d:codejavajavac HelloWorld.java
d:codejavajava HelloWorld
d:codejavajava HelloWorld
|
D:JBuilder7jdk1.3.1bin>javac d:codejavaHelloWorld也行