Java fun# Java - 爪哇娇娃
m*l
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
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