Eclipse在Windows 7中启动时出错

Exi*_*iRe 14 eclipse jvm

美好的一天.

我决定学习Java.我安装了JDK并下载eclipse-java-helios-SR1-win32了Windows 7.

但我无法启动eclipse,因为我总是收到消息:

Error: couldn't find Java SE Runtime Environment
Run Code Online (Sandbox Code Playgroud)

我试图重新安装JDK,但安装程序给了我这样的消息:

Error 1723, There is a problem with this Windows Installer package.
A DLL required for this install to complete couldn't be run."
Run Code Online (Sandbox Code Playgroud)

至少这里是日食给我的信息:

Java was started but returned exit code=2 

C:\Windows\system32\javaw.exe
-Dosgi.requiredJavaVersion =1.5 -Xms40m
-Xmx334m
-XX:MaxPermSize=256m
-jar C:\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-os Win32
-ws Win32
-arch x86
-showsplash
-launcher C:\eclipse\eclipse.exe
-name Eclipse
--launcher.library
C:\eclipse\plugins/org.eclipse.equinox.Iauncher.win32.win32.x86_1.1.1.R36x_v2010
0810\eclipse_1309.dll
-startup C:\eclipse\pIugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -exitdata 1760_50
-product org.eclipse.epp.package.java.product -vm C:\Windows\system32\javaw.exe -vmargs
-Dosgi.requiredJavaVersion=1.5 -Xms40m
-Xmx384m
-XX:MaxPermSize=256m
-jar C:\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0.v20100507jar
Run Code Online (Sandbox Code Playgroud)

这是错误的图片.我想我可以在日志中犯一些错误.

替代文字

Von*_*onC 17

改变你的eclipse.ini(在旁边eclipse.exe)以便:

  • 指定完整的JVM路径(-vm参数:-vm C:/Prog/Java/jdk1.6.0_21/jre/bin/server/jvm.dll例如).不要使用那个C:\Windows\System32.
  • 没有指定用于launcher.library的jar

这个eclipse.ini作为一个例子.