[英]Eclipse: Java was started but returned exit code -1073741571
Eclipse is closing while loading any XML layout with this message Java was started but returned exit code -1073741571
在使用此消息加载任何XML布局时Eclipse正在关闭Java was started but returned exit code -1073741571
my eclipse.ini 我的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
I noticed that the VM listed is: C:\\Windows32\\System\\javaw.exe which I believe is the Java 7 installed version. 我注意到列出的VM是:C:\\ Windows32 \\ System \\ javaw.exe,我相信它是Java 7安装的版本。 My configuration is using one of the earlier installed JVMs (from my Eclipse.ini): 我的配置是使用早期安装的JVM之一(来自我的Eclipse.ini):
-vm
C:\Program Files\Java\jdk1.6.0_14\bin\..\jre\bin\client\jvm.dll
Maybe you should update Eclipse to use a 1.6 version of Java to run. 也许您应该更新Eclipse以使用1.6版本的Java来运行。 From the Eclipse readme.html (found in the Eclipse install directory): 从Eclipse readme.html(在Eclipse安装目录中找到):
Specifying the Java virtual machine
Here is a typical Eclipse command line: 这是一个典型的Eclipse命令行:
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. 提示:在运行Eclipse时明确指定要使用的Java VM通常是个好主意。 This is achieved with the "-vm" command line argument as illustrated above. 这是通过“-vm”命令行参数实现的,如上所示。 If you don't use "-vm", Eclipse will look on the O/S path. 如果不使用“-vm”,Eclipse将查看O / S路径。 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 VM。
Sometimes means that the workspace is corrupted. 有时意味着工作区已损坏。
Create a fresh workspace and try a XML file. 创建一个新的工作区并尝试XML文件。
Thanks everyone for sharing solutions with me it seem that I had corrupted xml ( I am still not sure what corrupted means but it was forcing the IDE to crash) here is a snippet: 感谢大家与我共享解决方案似乎我已经损坏了xml(我仍然不确定哪些损坏意味着但是它迫使IDE崩溃)这里是一个片段:
<com.android.example.EndlesScrollView...
<FrameLayout...
<LinearLayout...
Each time I tried to use Graphical layout
view in eclipse the IDE crashes, All I did was to delete that XML totally and re-create it from scratch, it seems something wrong with the XML Tags which preventing the Graphical layout
from correctly displaying the correct UI. 每当我尝试在eclipse中使用Graphical layout
视图时,IDE崩溃,我所做的就是完全删除该XML并从头开始重新创建它,XML标签似乎有些不对,这会阻止Graphical layout
正确显示正确的UI。
I had the same issue. 我遇到过同样的问题。 What I did to overcome is very simple. 我要克服的是非常简单的。 I just downloaded a JRE and put it in to the root folder of eclipse since eclipse by default looks for the jre in that location. 我刚刚下载了一个JRE并将其放入eclipse的根文件夹中,因为默认情况下eclipse会查找该位置的jre。 That's it.... 而已....
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.