JVM terminated. Exit code = -1

后端 未结 21 739
面向向阳花
面向向阳花 2020-12-11 01:32

I\'ve been using Eclipse for some time already, and I didn\'t have any problems with it. However, when I tried to generate some javadoc, I found that I didn\'t have the SDK

相关标签:
21条回答
  • 2020-12-11 01:39

    I had similar issue: Eclipse IDE fail to launch with JVM Terminated. Exit code=-1

    One thing that worked for me is to set -Xmx to 256m in eclipse.ini. If that is not good enough for you, you may also try using different JVM module than the one that eclipse uses by default.

    If you look in the error dialog in your screen capture, you'll notice that the "-vm" option using "jvm.dll" as JVM. If you change it to use javaw.exe in your JAVA_HOME\bin folder, the problem should go away.

    I'm still clueless as to what the difference is between using jvm.dll vs javaw.exe. Maybe jvm.dll is suppose to be used only for light-weight embedded java applet and it can't handle the load brought on by a full stand-alone Java UI software.

    0 讨论(0)
  • 2020-12-11 01:39

    You just click on startup on eclipse folder and open the eclipce or right click on startup and click open with last javaw, then you can find solution.

    0 讨论(0)
  • 2020-12-11 01:40

    There is no need for reinstalling eclipse IDE or changing your environment variables. I had encountered this problem while working on my project I had this issue but I fixed it in no time and it works fine for me.

    Before implementing any solution, Check first that you don't have multiple installations of JDK in your system. I have encountered many systems with JDK 1.7 and JDK 1.8. If it is so, simply change your -vm to the alternate jdk C:\Program Files\Java\jdk1.7.0_60(jdk version you were not using)\jre\bin\client\jvm.dll and start your eclipse IDE. IT will work but the workspace will not synchronized and the files will not be getting displayed. Just close your IDE and revert to your previous jdk link and Voila It works.

    In case you have a single JDK installed in your system. I suggest clearing your CPU Physical memory. It so happens JVM has issues in execution if a lot of memory is utilised. Just go to the Task manager and close any redundant processes.

    Hope this helps! Keep Coding :)

    0 讨论(0)
  • 2020-12-11 01:41

    In my case the cause was a corrupted eclipse.ini file. I had been editing the file, and accidentally changed -Xmx512m to -Xmx512

    0 讨论(0)
  • 2020-12-11 01:42

    Perhaps you should reinstall Eclipse. Then you can add the JDK through Windows -> Preferences -> Java -> Installed JREs.

    0 讨论(0)
  • 2020-12-11 01:43

    Remove the default value "256m/256M" from the eclipse configuration file (eclipse.ini).

    You will find this line just below "--launcher.XXMaxPermSize".

    0 讨论(0)
提交回复
热议问题