|
JAVA 不能输出编译后的文件
出现如下错误,FC4系统 JVA5.0
请问是怎么回事阿?
[root@localhost ~]# cd /usr/java/work/
[root@localhost work]# java test
Exception in thread "main" java.lang.NoClassDefFoundError: test
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException: test not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:./,file:/usr/java/jdk/jre/lib/rt.jar,file:/usr/java/jdk/lib/dt.jar,file:./,file:/usr/java/jdk/lib/tools.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
[root@localhost work]# |
|