问题描述
我刚刚下载了 eclipse-java-helios-SR2-win32-x86_64.zip 解压了 zip.当我尝试运行时出现错误:
I just downloaded eclipse-java-helios-SR2-win32-x86_64.zip extracted the zip.When i'm trying to run i get error:
这是我的 .ini 文件:
Here is my .ini file:
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
我在 64 位 Windows 7 上运行(是的,我下载了 64 位 JDK 和 64 位 Eclipse)
I'm runing on Windows 7 64bit (Yes i downloaded the 64bit JDK and 64bit Eclipse)
推荐答案
Eclipse 用于启动的 JVM 不知何故 C:Windowssystem32javaw.exe
.我不认为这是您打算使用的.
The JVM being used by Eclipse for startup is somehow C:Windowssystem32javaw.exe
. I do not think that this what you intended to use.
要指定 Eclipse 使用的 JVM,请将以下行添加到 eclipse.ini 文件中:
To specify the JVM to be used by Eclipse, add the following line to the eclipse.ini file:
-vm <location of javaw.exe of your JAVA_HOME>
理想情况下,上述行必须出现在指定 vmargs 的行之前.
The above line would ideally have to be present before the line where your vmargs are specified.
这篇关于Eclipse 启动错误代码=1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!