Error :- java runtime environment JRE or java development kit must be available in order to run eclipse

后端 未结 14 1531
闹比i
闹比i 2020-12-24 13:05

I tried to run \"eclipse-jee-juno-win32-x86_64\" , but it raised the following error \" java runtime environment JRE or java development kit must be availab

相关标签:
14条回答
  • 2020-12-24 14:05

    ECLIPSE PHOTON ON MAC

    1. Get your current JAVA_HOME path /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home

    2. open /Users/you/eclipse/jee-photon/Eclipse.app/Contents/Eclipse/ and click on package content. Then open eclipse.ini file using any text file editor.

    3. Edit your -VM argument as below( Make sure the Java Path is same as $JAVA_HOME)

    -vm

    /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/bin

    1. save and start your eclipse.
    0 讨论(0)
  • 2020-12-24 14:06

    This doesn't seem to be relevant in this case, but in case others face this problem --- make sure that if you installed 32 bit version of Eclipse, you also installed 32 bit version of JRE. Similarly, if you installed 64 bit version of Eclipse, you need 64 bit version of JRE in your Windows. Otherwise you will see the above error message as well.

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