当前位置: 技术问答>linux和unix
linux下安装eclipse运行不了
来源: 互联网 发布时间:2016-12-19
本文导语: 下载的是“eclipse-SDK-3.7-linux-gtk.tar.gz”文件,解压到/usr/local目录下,用“/usr/local/eclipse/eclipse”命令启动不起来,提示以下错误: Warning: -Xms128m not understood. Ignoring. Warning: -Xmx256m not understood. Ignoring. Warning: -jar no...
下载的是“eclipse-SDK-3.7-linux-gtk.tar.gz”文件,解压到/usr/local目录下,用“/usr/local/eclipse/eclipse”命令启动不起来,提示以下错误:
Warning: -Xms128m not understood. Ignoring.
Warning: -Xmx256m not understood. Ignoring.
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: .usr.local.eclipse..p lugins.org.eclipse.equinox.launcher_1.2.0.v20110502.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/l ib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/root/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/root/java.version=1.4.2)
之前jdk已经安装好了,环境变量也设了
JAVA_HOME=/usr/java/jdk1.5.0_22
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib
export JAVA_HOME PATH CLASSPATH
求教各位高手什么原因!
Warning: -Xms128m not understood. Ignoring.
Warning: -Xmx256m not understood. Ignoring.
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: .usr.local.eclipse..p lugins.org.eclipse.equinox.launcher_1.2.0.v20110502.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/l ib/libgcj.so.5.0.0)
at __gcj_personality_v0 (/root/java.version=1.4.2)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/root/java.version=1.4.2)
之前jdk已经安装好了,环境变量也设了
JAVA_HOME=/usr/java/jdk1.5.0_22
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib
export JAVA_HOME PATH CLASSPATH
求教各位高手什么原因!
|
http://441463782.blog.163.com/blog/static/257881152010928354388/
参考一下这篇文章
参考一下这篇文章
|
CLASSPATH=.:$JAVA_HOME/lib
这个不太合适吧,直接CLASSPATH=$JAVA_HOME/lib这样应该就可以的,
lz的错误通常就是由于CLASSPATH变量设置问题引起的
这个不太合适吧,直接CLASSPATH=$JAVA_HOME/lib这样应该就可以的,
lz的错误通常就是由于CLASSPATH变量设置问题引起的