启动 JVM 时 Eclipse 崩溃已终止。退出代码=2 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26955742/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse Crashing on Launch JVM terminated. Exit code=2 Error
提问by ojas360
I wanted to Start Java Programming on Eclipse.. I ran into this problem when trying to run Eclipse, having installed latest Version.. I tried Googling The issue but didnt Found out answers For the same.
我想在 Eclipse 上开始 Java 编程.. 我在尝试运行 Eclipse 时遇到了这个问题,安装了最新版本.. 我尝试谷歌搜索这个问题,但没有找到相同的答案。
Problem:
问题:
Eclipse Craches with the Following Error
JVM terminated.Exit Code=2
C:\ProgramData\Oracle\Java\javapath\javaw.exe
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-jar C:\eclipse\plugins/org.eclipse.quinox.launcher_1.3.0v20140415-2008.jar
-os win32
-ws win32
-arch x86_64
-showsplash
C:\eclipse\plugins\org.eclipse.platform_4.4.0.v20140925-0400\splash.bmp
-launcher C:\eclipse\eclipse.exe
-name Eclipse
--launcher.library
C:\eclipse\plugins/org.eclipse.quinox.launcher_1.3.0.v20140415-2008.jar
--launcher.appendVmargs
-exitdata 1a54_58
-product org.eclipse.epp.package.java.product
-vm C:\ProgramData\Oracle\Java\javapath\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-jar C:\eclipse\plugins/org.exlipse.quinox.launcher_1.3.0.v20140415-2008.jar
Can someone please guide me how to solve this specific problem?I Had To Start With My Java Programming But This Error has Halted me .... Please Help...Thanks in ADvanced
有人可以指导我如何解决这个特定问题吗?我必须从我的 Java 编程开始,但是这个错误让我停止了......请帮助......谢谢高级
回答by Nandana Srinivasan
Uninstall Java; Delete all version of java on your machine. Download the latest version and install it. This worked for me.
卸载Java;删除您机器上的所有 java 版本。下载最新版本并安装。这对我有用。
回答by Anand
Path under environment variable is referring to incorrect version of java, do check whole path properly, sometimes "javapath" term is also mentioned under referring to incorrect version of java sdk. So simply remove that incorrect reference and It would work fine.
环境变量下的路径指的是不正确的java版本,请正确检查整个路径,有时在指不正确的java sdk版本下也会提到“javapath”术语。所以只需删除那个不正确的引用,它就可以正常工作。