装了gcj以后lumaqq运行不了了
root@localhost:~# lumaqqroot@localhost:~# 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=, 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
/etc/profile
export JAVA_HOME=/usr/lib/sun-j2se5.0-jre
export CLASSPATH=/usr/lib/sun-j2se5.0-jre/lib/tools.jar:/usr/lib/sun-j2se5.0-jre/lib/td.jar:/usr/lib/sun-j2se5.0-jre/lib/rt.jar:.
PATH="/usr/lib/sun-j2se5.0-jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
debian unstable localhost:~# mv /usr/bin/java /usr/bin/java-gcj
localhost:~# ln -s /usr/lib/sun-j2se5.0-jre/bin/java /usr/bin/java
解决
页:
[1]