Cannot run Eclipse; JVM terminated. Exit code=13

前端 未结 30 2846
生来不讨喜
生来不讨喜 2020-11-21 05:31

\"enter

I just append -vm C:\\Program Files\\Java\\jre6\\bin\\javaw.exe

in ec

相关标签:
30条回答
  • 2020-11-21 05:46

    I did couple of things inorder to get rid of this annoying error as modifying .ini never worked for me.

    1. Installed latest JDK
    2. Delete old eclipse IDE folder completely.
    3. This time i Unziped to different location

    Double Click "eclipse.exe" Works now like charm Use default workspace to load your old projects.

    Am suspecting it to be JDK's Java VM issue more than eclipse.

    0 讨论(0)
  • 2020-11-21 05:47

    In my case JAVA path was not set in Env variables. Started to work after correct path was set in Env PATH.

    Type javac in command prompt and make sure JAVA PATH is correct.

    0 讨论(0)
  • 2020-11-21 05:47

    Before going to the solution, let us know why it is showing that error. If you know the problem behind this issue we can easily fix that error.

    Reason 1: The most common reason behind this problem is, we are trying to install different bit version-that is, 64 bit or 32 bit version of the software. It maybe either Eclipse or Java.

    Solution: Check which version of operating system you are running.make sure you downloaded the same version of Eclipse as well as same version of Java software.

    Reason 2: Configuration mistake in Eclipse.ini file

    Solution: Add this line "-vm then path of your java sdk" at the end of Eclipse.ini file. for example: -vm C:\Program Files\Java\jdk1.7.0_71\bin\javaw.exe

    Reason 3: Special characters ( #, !, @) in Eclipse installation directory.

    Solution: Make sure you don’t have any special characters.

    Reason 4: You have added JAVA path two times in PATH system variable and both the path are different.

    Solution: Remove one incorrect/different JAVA path from PATH system variable.

    Reason 5: You maybe using latest version of Eclipse, but you might be using wrong version or unsupported version of Java Virtual Machine (JVM).

    Solution: To check which version of java you are using open command prompt by pressing win+R key and type cmd and press enter. Now in that console type Java -version command to know java version. Now research whether eclipse support that version or not. Or You can open “readme” folder in Eclipse folder and open readme_eclipse.html to see which version it supports.

    0 讨论(0)
  • 2020-11-21 05:48

    This can happen when the PATH environment variable is point to a wrong java instalation.

    0 讨论(0)
  • 2020-11-21 05:49

    use the configuration below;

        -startup
        plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
        --launcher.library
        plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130807-1835
        -product
        org.springsource.ggts.ide
        --launcher.defaultAction
        openFile
        --launcher.XXMaxPermSize
        256M
        -vm
        C:\Program Files\Java\jdk1.7.0_51\jre\bin\javaw.exe
        -vmargs
        -Dorg.eclipse.swt.browser.IEVersion=10001
        -Dgrails.console.enable.interactive=false
        -Dgrails.console.enable.terminal=false
        -Djline.terminal=jline.UnsupportedTerminal
        -Dgrails.console.class=grails.build.logging.GrailsEclipseConsole
        -Dosgi.requiredJavaVersion=1.6
        -Xms40m
        -Xmx768m
        -XX:MaxPermSize=256m
        -Dorg.eclipse.swt.browser.IEVersion=10001
    
    0 讨论(0)
  • 2020-11-21 05:50

    In my opinion the most answers here regarding different architectures of Eclipse and Java are simply wrong and this can be easily checked using e.g. Process Monitor under Windows. The -vm option is there to run a specific version of java and the point of it is, that the configured process is started and runs all the Java code on its own, that's why you configure up to java.exe. In that case you DON'T need to have the same architecture for Eclipse and Java, but can happily mix both 32 Bit and 64 Bit. You only CAN'T mix both, if you DON'T use -vm, but let Eclipse load Java natively into its own process using jvm.dll and such. That latter behavior is Eclipse's default, but not the case anymore if you properly configure -vm in eclipse.ini.

    If you don't believe me, do some tests on your own using different architectures of Eclipse and Java and do configure -vm or not properly. In the end, that's exactly what the questioner described in his comment to the accepted answer:

    Cannot run Eclipse; JVM terminated. Exit code=13

    He is telling that a 64 Bit JDK is working now, but in his screenshot one can see that his Eclipse is 32 Bit, because the path for launcher.library is 32 Bit.

    And now for the reason I came here: Ony of my customers had some problems loading one of our Eclipse/OSGI based applications as well and Java exited with exit code 13. In the end it showed that the problem was not about -vm or the architectures of Java and eclipse.exe, but instead he was simply missing config.ini and I guess eclipse.exe wasn't aware what to load or such. After we recognized that and put a config.iniback in place, the app loaded fine with using -vm and a 64 Bit JRE7 in combination with a 32 Bit eclipse.exe.

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