|
我在ubuntu下按照下面那篇文章说明安装了jdk,但是此后运行java程序总是出错。错误提示如下:
root@HOME:/home/max# /opt/LumaQQ/lumaqq
/opt/LumaQQ/lumaqq: line 64: [-x: command not found
root@HOME:/home/max# Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: edu.tsinghua.lumaqq.LumaQQ
at java.lang.VMClassLoader.transformException(java.lang.Class, java.lang.Throwable) (/usr/lib/libgcj.so.6.0.0)
at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.6.0.0)
at java.lang.Class.initializeClass() (/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)
Caused by: java.lang.ClassNotFoundException: java.lang.StringBuilder not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./lib/xerces.jar,file:./,file:./lib/swt.jar,file:./lib/poifs.jar,file:./,file:./lib/org.eclipse.ui.workbench_3.1.0.jar,file:./lib/org.eclipse.osgi_3.1.0.jar,file:./,file:./lib/org.eclipse.jface_3.1.0.jar,file:./lib/org.eclipse.emf.ecore.xmi_2.1.0.jar,file:./,file:./lib/org.eclipse.emf.ecore_2.1.0.jar,file:./lib/org.eclipse.emf.common_2.1.0.jar,file:./,file:./lib/org.eclipse.core.runtime_3.1.0.jar,file:./lib/org.eclipse.core.resources_3.1.0.jar,file:./,file:./lib/lumaqq_xsd.jar,file:./lib/lumaqq_template.jar,file:./,file:./lib/lumaqq.jar,file:./lib/log4j-1.2.8.jar,file:./,file:./lib/jql_protocol.jar,file:./lib/jql_net.jar,file:./,file:./lib/je.jar,file:./lib/jdom.jar,file:./,file:./lib/commons-logging.jar,file:./lib/commons-codec.jar,file:./], 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)
...4 more
文章的链接为
[HTML]http://www.ubuntu.org.cn/support/documentation/wiki/JavaPackageBuildNewVersions/view?searchterm=jdk[/HTML]
请大家帮忙看看。谢谢。 |
|