How to fix Eclipse Java Virtual Machine Launcher Error?

后端 未结 2 1588
野趣味
野趣味 2021-01-06 14:21

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 th

相关标签:
2条回答
  • 2021-01-06 15:05

    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.

    EDIT: 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.

    0 讨论(0)
  • 2021-01-06 15:07

    For windows user, if your getting this error:

    Java Virtual Machine Launcher- Error: could not open C:\Program Files\Java\jre1.8.0_60\lib\amd6jvm.cfg

    it indicates there is no jre1.8.0_60 version in your system. So you need to set the JRE version which is already there in our system by executing the below command:

    1. Go to cmd prompt
    2. go to the eclipse folder (which you have installed) by executing: cd eclipse-folder-path
    3. execute below command: eclipse -vm jre_path
      ex:

      eclipse -vm "C:\Program Files\Java\jdk1.8.0_131\jre\bin\javaw" 
      
    0 讨论(0)
提交回复
热议问题