JVM terminated. Exit code = -1

后端 未结 21 781
面向向阳花
面向向阳花 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:51

    I resolved it by installing 32 bit JDK and editing eclipse.ini to point to 32 bit jdk . Added -vm C:\Program Files (x86)\Java\jdk1.7.0_71\bin at the end of eclipse.ini file. Note: I have my JAVA_HOME pointint to 64 bit JDK

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

    I tried all the solution still didnt find my luck.Lastly i got it resolved by pointing to client jvm.dll in eclipse.ini file

    -vm   
    C:\jdk160_05\jre\bin\client\jvm.dll 
    

    I made a series of trials which you may find useful if you face the same and not getting resolved yet

    exit-code-1

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

    I added the new JRE to the eclipse.ini file and updated my PATH. Seemed to work for me.

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

    If you encounter a problem like this you can get a little more information by using eclipsec.exe from a command-line instead of eclipse.exe. I got this additional info in the dos box:

    C:\<...>\Eclipse>eclipsec
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    

    So I lowered my -Xmx setting in eclipse.ini from 1024 to 768, which made it work again. Why this was suddenly necessary I do not know atm, Eclipse has been running fine with 1024m some days ago.

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

    Edit your Environment Variables >> System Variables >> Path to

    C:\Program Files (x86)\Java\jdk1.6.0_24\bin;

    (NOT C:\Program Files\Java\jdk1.7.0_01\bin;)

    it should work

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

    First Approach:

    1. I added below lines in eclipse.ini

      -vm C:\Program Files(x86)\Java\jre\bin\java.exe
      
    2. Modified below line in eclipse.ini (changed to 1.6.0_37 from 1.5),

      -Dosgi.requiredJavaVersion=1.6.0_37
      
    3. Deleted JAVA_HOME from environment variables which was pointing to c:\jdk1.6

    Now Eclipse is working fine.

    Second Approach:

    Another way - don't add below line in Eclipse and only modify JAVA_HOME to point to C:\Program Files(x86)\Java\jre,

    -vm C:\Program Files(x86)\Java\jre\bin\java.exe
    

    Eclipse should work now.

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