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
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.
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.
I had this problem before and I solved by :
Right click my computer -> properties -> Advanced system settings.
In both sections :
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
I have tried everything, and finally deleting the -vm
options worked for me.
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
For mac :
I have added below two commands its working fine!
-vm
/usr/bin
/usr/libexec/java_home --verbose
Example