javaeclipsemyeclipse

MyEclipse 10 does not start "Java was started but returned exit code 13"


I saw that there are few topics with the same exception, but the solutions does not work on my side.

My specs:

Some days ago it worked all fine. Now I wanted to start it, then it shows the following error. Sadly I cannot attach images here, because of my low reputation. But the error "Java was started but returned exit code 13" occurs

This is the content of the myeclipse.ini

#utf8 (do not remove)
-clean
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_4.2.0.v201201111650
-install
k:\devel\Genuitec\MyEclipse 10
-vm
c:\java\bin\javaw.exe
-configuration
k:\devel\Genuitec\MyEclipse 10\configuration
-vmargs
-Xmx768m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=96m
-Dosgi.nls.warnings=ignore
-Dfile.encoding=UTF8

The only thing what I have done since it worked the last time, I installed python and updated the path varable. I read that the path variable can be the reason but I checked it and could not see anything bad. Does someone know what the reason could be.

Thanks


Solution

  • What is the cause of this error ?

    From here :

    this error is caused when you are attempting to start Eclipse using the wrong version of the Java Virtual Machine (JVM).

    Possible Fixes/problems

    1.

    Try starting eclipse with hardcoded 64-bit JVM as follows :

    eclipse -vm C:/java/jre/bin/server/jvm.dll


    2.

    From here Remove the launcher.library from your eclipse.ini. Delete the following bit from the eclipse.ini :

    --launcher.library
    ../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_4.2.0.v201201111650
    

    3.

    From here Try using the full path to the jvm.dll instead of the exe files, like so :

    -vm 
    C:/Prog/Java/jdk1.6.0_21/jre/bin/server/jvm.dll
    

    4.

    Problem Using an x86 Eclipse with a x64 JDK.
    Fix Just point to a JDK with the same architecture as your Eclipse in your eclipse.ini file, eg:

    -vm
    c:/java/jdk1.6.0_25_x86/jre/bin/javaw.exe
    

    Please check the version of the JDK in the path like so by typing java -version. On Windows 7, 64 bit with JDK 1.6.0_30 I get the following output :

    enter image description here

    Notice the 64-Bit Server VM in the last line. Do you get this ?

    See this page : Can't start Eclipse - Java was started but returned exit code=13


    5.

    If you Eclipse folder is on a path with spaces, try moving it to a simple path such as directly to c:/eclipse.

    From here : https://stackoverflow.com/a/8843744/325742

    I had the eclipse folder on my desktop and it gave me this error

    I simply moved the eclipse folder to program files and it worked, no idea why