- 论坛徽章:
- 0
|
在linux中安装eclipse。启动eclipse后,出现以下信息:
[root@localhost eclipse]# ./eclipse
Warning: -Xms40m not understood. Ignoring.
Warning: -Xmx256m not understood. Ignoring.
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: .usr.local.eclipse.plugins.org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/usr/local/eclipse/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/usr/local/eclipse/java.version=1.4.2)
先装的jre-1.6.0_22。安装完后查看java的版本是老的版本。
[root@localhost ~]# java -version
java version "1.4.2"
gcj (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
已经配置过profile:
PATH=$PATH:/usr/java/jre1.5.0_09/bin
export JAVA_HOME=/usr/java/jre1.5.0_09
export CLASSPATH=$JAVA_HOME/里边:.
请高手解决。 |
|