I have JRE installed on my system. In fact, Eclipse IDE for Java, which also needs JRE, is already running. Now I tried running Eclipse for PHP and it says -
A JRE or JDK must be available in order to run eclipse. No Java virtual machine was found after searching the following locations:
D:\setups\eclipse for php\eclipse\jre\bin\java.exe
java.exe in your path
I think I just need to correct the path to JRE in the config somewhere. Where to do it? I know the path of the JRE exe file.
Also, how to check in command line, which version of JRE is running?
Thanks.
Easiest solution is to do as it suggests and put java in your PATH system variable.
Go to your system properties, click "environment variables" and then add the path to your java bin folder in to the PATH variable (or create one if it doesn't exist). You will need to reboot for it to take effect.
on the command line, just run "java -version" (that will work once you have your PATH set)