Running Eclipse on Windows 7 JRE and JDK not found

后端 未结 4 732
悲哀的现实
悲哀的现实 2020-12-06 19:42

I downloaded the latest Eclipse on Windows 7. When I click the eclipse icon it throws the following exception:

<script

4条回答
  •  眼角桃花
    2020-12-06 20:08

    I have the same of problem because I was have both the java 1.7 and the java 1.8 and I solved the problem By :

    for windows :

    first :

    open your CMD and write java -version the result is the current version of java on your pc for exampe the result is 1.8 so

    second

    open the eclipse.ini and if the path was not the path of current version java (that shown in result of CMD) edit the path to correct path of your java (the version shown in result ) like this :

    before I change the path was :

    -vm

    C:\Program Files\Java\jdk1.7.0_45\jre\bin\javaw.exe

    -vmargs

    -Dosgi.requiredJavaVersion=1.7

    -Xms256m -Xmx1024m

    after I check of my version of java using CMD the result is : java 1.8 so I change the path and version like this :

    -vm

    C:\Program Files\Java\jdk1.8.0_45\jre\bin\javaw.exe

    -vmargs

    -Dosgi.requiredJavaVersion=1.8

    -Xms256m

    -Xmx1024m

    Nice Day :)

提交回复
热议问题