就像标题所说的那样,我对Eclipse
JVM启动器有问题。昨晚,一切正常,据我所知,此后我的电脑上没有任何变化。但是,我今天早上醒来,发现当我在Eclipse中运行任何项目时,我都会收到此错误:Java
Virtual Machine Launcher- Error: could not open C:\Program
Files\Java\jre1.8.0_60\lib\amd6jvm.cfg
我已经验证了 Path 变量(C:\Program
Files\Java\jdk1.8.0_65\bin)的完整性,现在,您可能会注意到,我的jdk的版本为65。我的JRE和Java安装也是如此。我不明白为什么eclipse使用jre60。我还检查了首选项,并且也更改了jre版本65。没有运气。此外,我运行了一个简单的java文件,没有通过命令行使用eclipse,并且运行/编译就很好了。我尝试将-
vm标记(那里不存在)添加到eclipse.ini并将其设置为jvm,但它没有帮助。(我没有删除它)我不知道该怎么办…请帮助,我已经尝试了所有我知道该怎么做的方法。谢谢!
编辑:
我的eclipse.ini文件如下:
-startup
../../../.p2/pool/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
../../../.p2/pool/plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-install
C:/Users/Sanjiv/eclipse/java-mars/eclipse
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
编辑2 我已经尝试过重新安装java,eclipse和jdk。