Eclipse 正在关闭,同时使用此消息加载任何 XML 布局 Java 已启动但返回退出代码 -1073741571
我的 eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms512m
-Xmx1024m
-Xss1024k
-Declipse.buildId=v21.0.0-519525
最佳答案
我注意到列出的 VM 是:C:\Windows32\System\javaw.exe,我认为这是 Java 7 安装版本。我的配置使用的是较早安装的 JVM 之一(来 self 的 Eclipse.ini):
-vm
C:\Program Files\Java\jdk1.6.0_14\bin\..\jre\bin\client\jvm.dll
也许您应该更新 Eclipse 以使用 1.6 版本的 Java 来运行。来自 Eclipse readme.html(位于 Eclipse 安装目录中):
Specifying the Java virtual machine
Here is a typical Eclipse command line:
eclipse -vm c:\jdk1.4.2\jre\bin\javaw
Tip: It's generally a good idea to explicitly specify which Java VM to use when running Eclipse. This is achieved with the "-vm" command line argument as illustrated above. If you don't use "-vm", Eclipse will look on the O/S path. When you install other Java-based products, they may change your path and could result in a different Java VM being used when you next launch Eclipse.
关于java - Eclipse:Java 已启动但返回退出代码 -1073741571,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14022257/