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

后端 未结 14 1530
闹比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 13:41

    Check the eclipse.ini file and make sure there is no -vm option there that is pointing to a non existing java install now. You can delete the option to let Eclipse figure out what java install to use or change it so it's pointing to the new install.

    0 讨论(0)
  • 2020-12-24 13:43

    Step 1

    My computer > properties > Advance system settings

    Step 2

    environment variables > click New button under user variables > Enter variable name as 'PATH'

    Copy the location of java bin (e.g:C:\Program Files\Java\jdk1.8.0_121\bin) and paste it in Variable value and click OK Now open the eclipse.

    0 讨论(0)
  • 2020-12-24 13:45

    I had this problem before and I solved by :

    Right click my computer -> properties -> Advanced system settings.

    In both sections :

    • User variables for "YourUser" &
    • System variables

    Update the PATH by adding to the end of it a ";" and your java bin folder location , mine was "C:\Program Files\Java\jdk1.7.0_51\bin"

    If there is no path then create it using the NEW button, set "Variable Name " to PATH and "Value" to your java bin location.

    You can replace your PATH if there is no need for it

    NOTE : THE FOLDER BIN SHOULD CONTAIN javaw.exe

    0 讨论(0)
  • 2020-12-24 13:48

    I have tried everything, and finally deleting the -vm options worked for me.

    0 讨论(0)
  • 2020-12-24 13:48

    open /Users/you/eclipse/java-oxygen right click on eclipse, click on show package content

    Then go to Contents/Eclipse and select file eclipse.ini, open in text file or in any editor.

    search deleted java path and add newer java path till bin /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin

    0 讨论(0)
  • 2020-12-24 13:48

    For mac :

    I have added below two commands its working fine!

    -vm
    /usr/bin
    /usr/libexec/java_home --verbose
    

    Example

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