Eclipse Crash on Launch - JVM终止。退出代码= 2 [英] Eclipse Crash on Launch - JVM terminated. Exit code=2
问题描述
我会尽我所能使我的情况尽可能清楚。我尝试搜索错误消息,但我没有找到任何关于退出代码= 2
任何地方的主题。我只找到关于不同退出代码的主题,我想解决我的问题,根据给出的建议 - 没有运气到目前为止。我也是一个新手,当它涉及到任何形式的Linux(我使用的分布是Ubuntu)。
I will do my best to make my situation as clear as possible. I tried googling the error message, but I haven't found any topic regarding exit code=2
anywhere. I only found topics regarding different exit codes, and I'm trying to fix my issue following the advice given there - no luck so far. Also I'm a newbie when it comes to any form of Linux (the distribution I'm using is Ubuntu).
我的eclipse崩溃,启动时出现以下错误窗口:
My eclipse crashes on launch with following error window popping up:
JVM terminated. Exit code=2
/usr/bin/java
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /usr/lib/eclipse//plugins/org.eclipse.platform_3.8.1.dist/splash.bmp
-launcher /usr/lib/eclipse/eclipse
-name Eclipse
--launcher.library/usr/lib/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.dist/eclipse_1503.so
-startup /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
--launcher.overrideVmargs
-exitdata 670018
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
有一个很大的可能性,我的问题是与缺乏正确的Java版本安装相关。
There is a big posibility that my problem is related to lack of proper Java version installed.
我怀疑这是因为:
两天前我的电脑上运行了eclipse。昨天我不得不使用需要安装特定版本的JRE的Web应用程序。由于我缺乏linux知识,我花了几个小时删除我当前安装的java JRE和JDK(所以我可以安装所需的版本)使用我在互联网上找到的多个指南(一些包括命令如 sudo apt-get purge java *
和其他命令,包括remove,java和*)。今天我的Eclipse不会启动。
I had eclipse running on my pc two days ago. Yesterday I had to use a web-application which required a specific version of JRE installed. Due to my lack of linux knowledge, I spent a few hours removing my current installations of java JREs and JDKs (so I could install the required version) using multiple guides that I found on the internet (some included commands like sudo apt-get purge java*
and other commands including removing, java and *). Today my Eclipse wont launch.
当我运行
java -version
它没有这样的文件或目录,但是网页如
http://www.java.com/en/download/testjava.jsp
http://javatester.org/version.html
可以工作,并说我的java版本
it says no such file or directory, but the webpages like http://www.java.com/en/download/testjava.jsp http://javatester.org/version.html do work and say that my java version is
Vendor: Oracle Corporation
Version: Java SE 7 Update 25
Operating System: Linux 3.5.0-34-generic
Java Architecture: 64-bit
使用此方法安装: / p>
installed using this method:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
有人可以指导我如何解决这个具体问题吗?幸运的是,我没有在我的Eclipse中做任何重要的项目,所以我不介意清除安装如果必要。
Can someone please guide me how to solve this specific problem? Luckly I haven't made any important projects in my Eclipse yet so I don't mind purging the installation if necessary.
说实话,我需要Eclipse的主要原因是远程服务器资源管理器选项,所以如果任何人都知道一个好的IDE,除了Eclipse,可以提供一样好的远程
To be completely honest the main reason I need Eclipse for is the Remote Server Explorer option, so if anyone knows a good IDE other than Eclipse that can provide just as good Remote Server Explorer it would be a perfect-fast-temporary solution.
推荐答案
Set\Change你当前的jdk路径在eclipse.ini 。
Set\Change your current jdk path in eclipse.ini.
-vm
C:\Java\JDK\1.8\bin\javaw.exe
示例Ini文件内容:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Java\JDK\1.8\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1024m
这篇关于Eclipse Crash on Launch - JVM终止。退出代码= 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!