java - Eclipse:Java 已启动但返回退出代码 -1073741571

标签 java windows eclipse

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

enter image description here

最佳答案

我注意到列出的 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/

相关文章:

java - interrupt() 没有按预期工作(中断如何工作?)

java - Android 将文件从内部存储复制到外部

windows - Matlab中从一个文件夹中读取多个图像的问题

java - 向storm集群提交拓扑时出错

java - 测试中未抛出 MaxUploadSizeExceededException

windows - 注册表碎片整理程序

c++ - Windows 游戏 : UTF-8, UTF-16、DirectX 和 Lua

java - Nexus 2.10 断管 IOException

eclipse - IBM TRIRIGA BIRT 功能在 Eclipse 3.6.2 中安装后不显示

java - eclipse中的冗余 super 接口(interface)警告