Eclipse ADT: Java was started but returned exit code=13

后端 未结 15 1226
你的背包
你的背包 2020-12-19 21:23

Could someone one clarify why my Eclipse (http://developer.android.com/sdk/index.html) from ADT won\'t start?

Every time I\'m getting this error:

---         


        
相关标签:
15条回答
  • 2020-12-19 21:45

    The solution can be found here

    The eclipse ini file should be somewhat like this...

    -startup
    plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
    -product
    adtproduct
    --launcher.XXMaxPermSize
    256M
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    --launcher.appendVmargs
    -vm
    C:\Program Files\Java\jdk1.8.0_25\bin\javaw.exe
    -vmargs
    -Dosgi.requiredJavaVersion=1.6
    -Xms40m
    -Xmx768m

    0 讨论(0)
  • 2020-12-19 21:46

    this is a makeshift solution but may sort you out.

    show hidden files, C:\ProgramData\Oracle\Java\javapath

    you will find 3 shortcut links that are pointing to the wrong directories,

    solution 1; go to C:\Program Files\Java\jre8\bin and copy out the files these links are pointing to and paste into the C:\ProgramData\Oracle\Java\javapath. Close and run again the eclipse, install updates

    solution 2: go fix the environmental paths as some other solutions here suggest.

    the first one worked for me

    0 讨论(0)
  • 2020-12-19 21:47

    Remove the following entry from your "path" System Variable- "C:\ProgramData\Oracle\Java\javapath"

    Go to Control panel -> System -> Environment variable -> System Variable -> Path (Edit)

    then Remove first entry which would be "C:\ProgramData\Oracle\Java\javapath".

    Then eclipse will start.

    0 讨论(0)
  • 2020-12-19 21:47

    On Windows Environment Variables, delete the value of Path variable that contains installed Java location. Then copy the installed Java to your Android-SDK folder.

    You can copy the jre folder (example C:\Program Files\Java\jdk1.7.0_51\jre) to

    C:\Users\Alexey\Desktop\tmp\adt-bundle-windows-x86_64-20130729\adt-bundle-windows-x86_64-20130729\eclipse\
    

    It solved my problem

    0 讨论(0)
  • 2020-12-19 21:49

    Uninstall all Java SDK or JRE, specially if it´s the 8th version, so reinstall the 6th or 7th version, and check again. It worked for me :)

    0 讨论(0)
  • 2020-12-19 21:49

    The error is because you have not specified the path to the javaw.exe file which is in jdk.

    1. open eclipse.ini file
    2. after vmargs command(ie below the vmargs command - since they have to be in separate lines) add the following line
      -vm C:\Program Files\Java\jdk1.7.0_51\bin\javaw.exe NOTE : that the -vm shud b in one line and the path to the javaw.exe file must be in another line
    3. save the file
    4. run the eclipse.
    0 讨论(0)
提交回复
热议问题