我在 Windows 7 上下载了最新的 Eclipse.当我单击 Eclipse 图标时,它会引发以下异常:
I downloaded the latest Eclipse on Windows 7. When I click the eclipse icon it throws the following exception:
我已经安装了 JRE 和 JDK.
I have already installed JRE and JDK.
更新:Eclipse.ini 内容:
UPDATE: Eclipse.ini contents:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-Xms40m
-Xmx512m
-vm C:Program Files (x86)Javajre7in
根据 Eclipse 文档,您可能需要在 VM args 之前指定 VM,并且路径不应与 -vm 开关在同一行:
According to the Eclipse documentation, you may need to specify the VM before the VM args, and the path should not be on the same line as the -vm switch:
来源:Eclipse Wiki
例如:
-vm
C:JavaJDK1.6injavaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1024m
您可能还需要用一些引号括住您的路径,因为它包含空格.我总是将 Eclipse 和 Java 之类的东西安装在没有空格的根目录中,而不是在 Program Files
下,以避免这个问题.
You also might need to surround your path with some quotes, since it contains spaces. I always install things like Eclipse and Java in root directories with no spaces, not under Program Files
, to avoid this problem.
这篇关于找不到在 Windows 7 JRE 和 JDK 上运行 Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!