Eclipse 在 Windows 7 中启动时的错误

2022-01-16 00:00:00 jvm eclipse

美好的一天.

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

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

错误:找不到 Java SE 运行时环境

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

错误 1723,此 Windows 安装程序包有问题.无法运行完成此安装所需的 DLL."

至少这里是eclipse给我的信息:

Java 已启动但返回退出代码=2C:Windowssystem32javaw.exe-Dosgi.requiredJavaVersion =1.5 -Xms40m-Xmx334m-XX:MaxPermSize=256m-jar C:eclipseplugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar-os Win32-ws Win32-拱 x86-showsplash-启动器 C:eclipseeclipse.exe-name Eclipse--launcher.libraryC:eclipseplugins/org.eclipse.equinox.Iauncher.win32.win32.x86_1.1.1.R36x_v20100810eclipse_1309.dll-启动 C:eclipsepIugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -exitdata 1760_50-product org.eclipse.epp.package.java.product -vm C:Windowssystem32javaw.exe -vmargs-Dosgi.requiredJavaVersion=1.5 -Xms40m-Xmx384m-XX:MaxPermSize=256m-jar C:eclipseplugins/org.eclipse.equinox.launcher_1.1.0.v20100507jar

<小时>

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

解决方案

更改您的 eclipse.ini(就在 eclipse.exe 旁边)以:p>

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

参见这个eclipse.ini 为例.

Good day.

I decided to learn Java. I installed JDK and downloaded eclipse-java-helios-SR1-win32 for windows 7.

But i can't launch eclipse because i always receive the message:

Error: couldn't find Java SE Runtime Environment

I tried to reinstall the JDK but installer gave me such message:

Error 1723, There is a problem with this Windows Installer package.
A DLL required for this install to complete couldn't be run."

At least here is information that eclipse gave to me:

Java was started but returned exit code=2 

C:Windowssystem32javaw.exe
-Dosgi.requiredJavaVersion =1.5 -Xms40m
-Xmx334m
-XX:MaxPermSize=256m
-jar C:eclipseplugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-os Win32
-ws Win32
-arch x86
-showsplash
-launcher C:eclipseeclipse.exe
-name Eclipse
--launcher.library
C:eclipseplugins/org.eclipse.equinox.Iauncher.win32.win32.x86_1.1.1.R36x_v2010
0810eclipse_1309.dll
-startup C:eclipsepIugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -exitdata 1760_50
-product org.eclipse.epp.package.java.product -vm C:Windowssystem32javaw.exe -vmargs
-Dosgi.requiredJavaVersion=1.5 -Xms40m
-Xmx384m
-XX:MaxPermSize=256m
-jar C:eclipseplugins/org.eclipse.equinox.launcher_1.1.0.v20100507jar


Here is a picture of the error. I suppose that i could make few mistakes in the log.

解决方案

Change your eclipse.ini (right beside the eclipse.exe) in order to:

  • specify a full JVM path (-vm argument: -vm C:/Prog/Java/jdk1.6.0_21/jre/bin/server/jvm.dll for instance). Don't use the one in C:WindowsSystem32.
  • not specify the jar used for the launcher.library

See this eclipse.ini as an example.

相关文章