感谢支持
我们一直在努力

解决Linux下Eclipse启动错误

下载Eclipse后一打开就报错:


JVM terminated. Exit code=-1
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-Djava.class.path=/usr/local/eclipse/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-os linux
-ws gtk
-arch x86
-showsplash /usr/local/eclipse//plugins/org.eclipse.platform_3.3.202.v201002111343/splash.bmp
-launcher /usr/local/eclipse/eclipse
-name Eclipse
–launcher.library /usr/local/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520/eclipse_1206.so
-startup /usr/local/eclipse/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-vm /usr/java/jdk1.6.0_20/bin/../jre/lib/i386/client/libjvm.so
-vmargs
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-Djava.class.path=/usr/local/eclipse/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar


通过命令行运行,提示错误


/usr/java/jdk1.6.0_20/bin/../jre/lib/i386/client/libjvm.so: 无法启用共享目标需要的执行栈: 权限不够


突然想起没有给eclipse分配权限,于是


chown root *


chgrp root *


另外打开eclipse.ini增加如下语句


-vm


/usr/java/jdk1.6.0_20/jre/bin/java


再次启动eclipse,运行成功

赞(0) 打赏
转载请注明出处:服务器评测 » 解决Linux下Eclipse启动错误
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏