Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix error: could not find the required version of the Java(TM) 2 runtime environment in '(null)'

I have researched this and none of the solutions that I have seen have fixed my error.

What is happening is I tried to install Java EE version got the above error and then found out that I must install Java SE first. So I installed Java SE and set the JAVA_HOME variable to C:\Program Files\Java\jdk1.8.0 which is where I installed my JDK. I also put C:\Program Files\Java\jdk1.8.0\bin in my PATH variable. Still not working. I also tried the JAVA_HOME variable with C:\Program Files\Java\jdk1.8.0\bin and that didn't work. I also tried installing without the PATH variable being updated to where I put my JDK.

I'm really getting confused as to why this is happening. I've had Java before and I don't recall having this much trouble installing it.

PS I don't install from the command line I just click the download icon in Firefox and then click the download.

like image 798
mitchj Avatar asked Mar 25 '14 15:03

mitchj


1 Answers

Try running the installer at your commandline and pass the path of the JRE instead of the JDK.

For Example:

java_ee_sdk7-windows.exe -j "C:\Program Files\Java\jre8" 
like image 193
Mobold Avatar answered Oct 02 '22 14:10

Mobold