JVM terminated. Exit code = -1

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

提交回复
热议问题