Cannot run Eclipse; JVM terminated. Exit code=13

前端 未结 30 2844
生来不讨喜
生来不讨喜 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:51

    I had the same issue with eclipse in my both machine. I had jre 32 bit installed. So I removed 32 bit and installed 64 bit instead and it worked perfectly.

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

    Recently I faced same issue.My version of eclipse didnt support java version 8.

    I had accidently installed jre 8 on my machine which automatically updated my PATH variable by appending "C:\ProgramData\Oracle\Java\javapath" in the beginging which led eclipse to pick up this version(and ignore the manually added 1.6 version which came later in order)and crash with exit code 13.

    I just removed this string from the path so which led system to pick up my older version and eclipse started just fine.

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

    It may just be the way the error shows (and not how it is written in the eclipse.ini file), but there is text in Eclipse.ini (Specifying the JVM) that says the following:

    • The -vm option and its value (the path) must be on separate lines.
    • The value must be the full absolute path to the Java executable, not just to the Java home directory.
    • The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM
    0 讨论(0)
  • 2020-11-21 05:55

    The error means it's the wrong JVM version for that version of Eclipse. The link has more details:

    http://www.ehow.com/how_4784069_terminated-exit-code-error-eclipse.html

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

    After java update, eclipse will not start because default jdk location has changed. Adding the following lines to eclipse.ini file solved my problem immediately:

    -vm
    C:\Program Files (x86)\Java\jdk1.7.0_75\bin\javaw.exe
    

    I added these lines just before vmargs. It looks like as the following :

    ...
    --launcher.defaultAction
    openFile
    -vm
    C:\Program Files (x86)\Java\jdk1.7.0_75\bin\javaw.exe
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Dhelp.lucene.tokenizer=standard
    -Xms40m
    -Xmx512m
    

    For more information on eclipse.ini, visit this the site http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Windows_Example

    In my case, i use 32 bit eclipse and java. If you installed both 32 bit and 64 bit versions of java, be careful to choose the right version. For 64 bit versions, refer to the javaw.exe file under the directory

    C:\Program Files\Java\jdk1.8.0_60\bin
    
    0 讨论(0)
  • Look at the second line of the message box. There you can see which java runtime in fact is started. Mine was suddenly C:\ProgramData\Oracle\Java\javapath\javaw.exe. This happened after I have installed a "chrome java updater" (Chrome browser moaned: 'your java is outdated, you have to update...').

    Before this "chrome java update" my eclipse (luna jee x64) started without error. Looking closer to the background I detected following: the chrome java updater (notabene started from an Oracle site) added C:\ProgramData\Oracle\Java\javapath in front of the env var PATH. It contains three symbolic links to the newest java 8 JRE installation in (x86) program folder -> hence to a 32 bit java JRE. Oracle replaces with Java8 the old technique having the symlinks in system32 (64bit) resp. SysWOW64 (32bit).

    Meanwhile I learned. Whatever java installer you have executed last (the *.exe) leads windows to remember that java flavour (32b or 64b), with the result that after an update the links in C:\ProgramData\Oracle\Java\javapath point to a java installation of the remembered flavour. If you have a 64b eclipse installation and encounter the described error: just re-install the newest 64b JDK. After that the java updates do no more link to a 32b version. And eclipse 64b will start correctly without the entry in eclipse.ini .

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