Eclipse启动错误code = 1?错误、Eclipse、code

2023-09-07 18:00:11 作者:已逝去的记忆

我刚刚下载 eclipse-java-helios-SR2-win32-x86_64.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

我乳宁在Windows 7 64位(是的,我下载了64位JDK和64位的Eclipse)

I'm runing on Windows 7 64bit (Yes i downloaded the 64bit JDK and 64bit Eclipse)

推荐答案

在JVM正在为启动Eclipse使用是有点 C:\ WINDOWS \ SYSTEM32 \ javaw.exe的 。我不认为这有什么,你打算使用。

The JVM being used by Eclipse for startup is somehow C:\Windows\system32\javaw.exe. I do not think that this what you intended to use.

要指定JVM要使用的Eclipse,以下行添加到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>

上面一行将理想必须是present它指定的vmargs不前行。

The above line would ideally have to be present before the line where your vmargs are specified.