由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Java fun
相关主题
JAVA IDE ?[转载] 有人在用NetBeans IDE么?
请问一个最初级问题现在哪种java开发环境比较流行呀?
如何从java中调用MatlabJava 6和Java 8的问题
问个java on linux的奇怪问题Dos and Don'ts about classpath
调查:最好的Java IDEJava IDE 选择?
请问用什么java developer? 在哪里下载?what's the most popular Java IDE
[请教]有关JAVA IDE的问题我google了java进入了它的主页,然后提示下载java
java 新手第一次摸java的新手问
相关话题的讨论汇总
话题: java话题: command话题: box话题: caused
进入Java版参与讨论
1 (共1页)
m**********l
发帖数: 10
1
hi,all
I'm having problems running my created Java applications from the command
line. The javac command seems to compile the .java file correctly, but when
I try to run the program using the java command, I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: Box
Caused by: java.lang.ClassNotFoundException: Box
at java.net.URLClassLoader$1.run (URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(NativeMethod)
at java.net.URLClassLoader.find
A**o
发帖数: 1550
2
Quick solution: find a IDE, namely Eclipse/Netbeans/IntelliJ IDEA
s******n
发帖数: 876
3
maybe you didn't give java the full class name, including package name.
java a.b.Box

when

【在 m**********l 的大作中提到】
: hi,all
: I'm having problems running my created Java applications from the command
: line. The javac command seems to compile the .java file correctly, but when
: I try to run the program using the java command, I get this error:
: Exception in thread "main" java.lang.NoClassDefFoundError: Box
: Caused by: java.lang.ClassNotFoundException: Box
: at java.net.URLClassLoader$1.run (URLClassLoader.java: 200)
: at java.security.AccessController.doPrivileged(NativeMethod)
: at java.net.URLClassLoader.find

z****e
发帖数: 54598
4
u need to set the classpath of java
the classpath should include "." which means current folder

when

【在 m**********l 的大作中提到】
: hi,all
: I'm having problems running my created Java applications from the command
: line. The javac command seems to compile the .java file correctly, but when
: I try to run the program using the java command, I get this error:
: Exception in thread "main" java.lang.NoClassDefFoundError: Box
: Caused by: java.lang.ClassNotFoundException: Box
: at java.net.URLClassLoader$1.run (URLClassLoader.java: 200)
: at java.security.AccessController.doPrivileged(NativeMethod)
: at java.net.URLClassLoader.find

m**********l
发帖数: 10
5
Thanks all, great help!
1 (共1页)
进入Java版参与讨论
相关主题
第一次摸java的新手问调查:最好的Java IDE
java comm 请教请问用什么java developer? 在哪里下载?
为何运行JAVA出现这个错误?[请教]有关JAVA IDE的问题
Exception in thread "main" java.lang.NoClassDefFoundErrorjava 新手
JAVA IDE ?[转载] 有人在用NetBeans IDE么?
请问一个最初级问题现在哪种java开发环境比较流行呀?
如何从java中调用MatlabJava 6和Java 8的问题
问个java on linux的奇怪问题Dos and Don'ts about classpath
相关话题的讨论汇总
话题: java话题: command话题: box话题: caused