Java JRE installation |
To install Java JRE, execute the following steps:
1.Download Java from: https://www.java.com/; If the OpenJDK version of Java, which does not need licensing, will be used, download it from: https://adoptopenjdk.net/;
2.Execute the Java installation file and proceed with the installation;
JAVA_HOME environment variable configuration
3.After installing Java, click on the Windows Start menu;
4.Right-click on My Computer and select Properties;
5.Select the Advanced tab and click on Environment;
6.In System Variables, click on New;
7.On the New System Variable screen, fill in the following fields:
▪Variable name: Enter JAVA_HOME; ▪Variable value: Enter the JAVA directory, for example: C:\Program Files\Java\jre8
8.Click on OK;
9.In the System Variables list, select Path and click on Edit;
10. In the Variable value field, type in before the first instruction: %JAVA_HOME%\bin. If you are using Windows Server version 2012 or lower, do as displayed in the image below:
If you are using Windows Server version 2016 or higher, perform the following steps: i.After selecting the Path variable, click on Edit Text:
ii.In the Variable value field, type: %JAVA_HOME%\bin before the first instruction, as shown in the image below:
11. Click on OK;
12. Click on OK to close the Environment variables window. |