首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

"hello world" error under ubuntu解决方案

2012-01-09 
hello world error under ubuntuinstalledjkd1.6.0writeasimplehelloworldexamplejavachelloworld.javaw

"hello world" error under ubuntu
installed   jkd1.6.0
write   a   simple   helloworld   example
javac   helloworld.java   work   well
java   helloworld   gets   error:
Exception   in   thread   "main "   java.lang.ClassFormatError:   helloworld   (unrecognized   class   file   version)
      at   java.lang.VMClassLoader.defineClass(libgcj.so.7)
      at   java.lang.ClassLoader.defineClass(libgcj.so.7)
      at   java.security.SecureClassLoader.defineClass(libgcj.so.7)
      at   java.net.URLClassLoader.findClass(libgcj.so.7)
      at   java.lang.ClassLoader.loadClass(libgcj.so.7)
      at   java.lang.ClassLoader.loadClass(libgcj.so.7)
      at   java.lang.Class.forName(libgcj.so.7)
      at   gnu.java.lang.MainThread.run(libgcj.so.7)
can   someone   help   me?

[解决办法]
把你的源文件贴上来,这个和ubuntu没关系,我也是用这个dist的
[解决办法]
这和你用是什么平台,是没有关系的哦。

热点排行