JVM terminated. Exit code = -1

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

    If you have got a problem like that, you should change the path of jre.

    Firstly, computer> properties > advance system setting > Environment variables > find "path" under system variables then give the directory of your jre/bin. (for example C:\ Program Files\ java\ jre\ bin)

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

    Please add "-vm" option to the eclipse.ini file available in the same folder as eclipse.exe.

    The -vm option should point to the javaw.exe located in your machine, something like the below.

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

    After adding the above line to eclipse.ini save it. Now clicking eclipse.exe will automatically launch the IDE.

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

    This problem occure in the case, when you are using 64 bit OS on 32 bit motherboard. Now, it can be resolved easly,

    First uninstall 64 bit java and install 32 bit java. and set environment variable with jdk path.

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

    I added the entry in the Path environment variable to the jdk bin folder and it started working

    Path = %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft Application Virtualization Client;C:\Program Files\Java\jdk1.6.0_18\bin
    
    0 讨论(0)
  • 2020-12-11 01:49

    I had the same problem and it turned out to be a problem with 64-bit versions. My solution was removing all my Java programs and reinstalling the 64-bit JRE (I had downloaded the 64-bit Eclipse).

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

    I just had the same problem on Windows 7, 64 bit. I reinstalled Java 32 and Java 64, and Eclipse, but it did not fix the problem. I found that in eclipse.ini the Dosgi.requiredJavaVersion was 1.5, so I changed it to Dosgi.requiredJavaVersion=1.6.0_25. In the Environmental variables I added to the PATH %JAVA_HOME%\bin;C:\Program Files (x86)\Java\jdk1.6.0_25\bin. These changes fixed my Eclipse problem.

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