Please go to following link https://www.java.com/en/download/manual.jsp , download the java installation file and run it.
To set the JRE_HOME or JAVA_HOME variable:
If you didn’t change the path during installation, it’ll be something like
You can also type
where java at the command prompt.
JAVA_HOMEif you installed the JDK (Java Development Kit)
JRE_HOMEif you installed the JRE (Java Runtime Environment)
run following command in cmd terminal:
If java is successfully installed, the terminal should show something as following(actual version number might be different as per your installation time).
java version “1.8.0_202”
DownLoad Url osoyoo.com