如何修复Eclipse Java Virtual Machine Launcher错误? [英] How to fix Eclipse Java Virtual Machine Launcher Error?

查看:11581
本文介绍了如何修复Eclipse Java Virtual Machine Launcher错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如标题所示,我有一个与eclipse JVM启动器有关的问题。昨天晚上,一切都很好,据我所知,从那时起,我的电脑就没有任何变化。但是,我今天早晨醒来发现,当我在eclipse中运行我的任何项目时,我会记住这个错误: Java虚拟机启动器 - 错误:无法打开C:\Program Files\Java\\ \\ jre1.8.0_60\lib\amd6jvm.cfg

So like the title says, Im having an issue with eclipse JVM launcher. Last night, everything was working fine, as far as I know, nothing at all has changed on my pc since then. However, I woke up this morning to find that when I run any of my projects in eclipse I recive this error: Java Virtual Machine Launcher- Error: could not open C:\Program Files\Java\jre1.8.0_60\lib\amd6jvm.cfg

我已经验证了我的路径变量,( C:\Program Files\Java\jdk1.8.0_65\bin )现在在这一点上,你可能会注意到,我的jdk是在版本我的JRE和java安装也是如此。我不明白为什么eclipse正在使用jre 60.我也检查了偏好,并改变了jre版本65.没有运气。此外,我运行一个简单的java文件,而不使用eclipse通过命令行,并运行/编译就好了。我尝试添加-vm标签(它还没有存在)到eclipse.ini并将其设置为jvm,但它没有帮助。 (我比删除它)我不知道该怎么办...请帮助,我已经尝试了我知道如何做的一切。谢谢!

I have already verified the integrity of my Path variable, (C:\Program Files\Java\jdk1.8.0_65\bin) Now at this point, you may notice, my jdk is on version 65. So is my JRE and java installation. I dont understand why eclipse is using jre 60. I also checked the preferences and changed the jre version too 65. No luck. Furthermore, I ran a simple java file without using eclipse through the command line and that ran/compiled just fine. I tried adding the -vm tag (It didn't already exist there) to eclipse.ini and setting it too the jvm but it didn't help. (I than removed it) I have no idea what to do... Please help, I've tried everything I know how to do. Thanks!

编辑:

我的eclipse.ini文件如下: p>

My eclipse.ini file below:

-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。

EDIT 2 I have already tried reinstalling java, eclipse and jdk.

推荐答案

好的,经过一番挖掘,我设法解决了这个问题。在eclipse中,我去了 Windows>首选项> Java>已安装的JREs>执行环境> JavaSE-1.8>兼容JREs> jre1.8.0_65(完美匹配)。我不知道为什么或如何改变,(或为什么它的工作),但嘿,我没有抱怨。对于有同样问题的其他人,首先要在问题正文中所说的一切,然后再试一下。它也希望为你工作。

Ok, so after a bit of digging, I managed to fix the problem. In eclipse, I went to Windows>Preferences>Java>Installed JREs>Execution Enviorments>JavaSE-1.8>Compatible JREs>jre1.8.0_65(perfect match). I have no idea why or how that changed, (or why it worked) but hey, I'm not complaining. For anyone else with the same issue, first do everything I said in the question body, then try this. It hopefully will work for you too.

编辑:
我只是想出了这个问题的原因。我在另一台计算机上打开工作区(我的工作区在共享驱动器上)运行java 1.8.0_60,而这台计算机运行java 1.8.0_65。显然,eclipse不得不改变版本,从而导致问题。

I just figured out the cause of the issue as well. I opened the workspace on another computer (my workspace is on a shared drive) running java 1.8.0_60 while this computer is running java 1.8.0_65. Obviously, eclipse had to change the version therefore causing problems.

这篇关于如何修复Eclipse Java Virtual Machine Launcher错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆