Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
- Download the supported version of Java JDK. There are several vendors who source the supported JDK version as OpenJDK. Here are two suggested resources:
- Oracle OpenJDK
- Adopt OpenJDK
For more information about selecting an OpenJDK vendor click here.
- Download the supported JDK version.
- When the download has finished, extract the zip file into a folder, e.g.
C:\Program Files\Java\
and it will create ajdk-11
folder (where the bin folder is a direct sub-folder). You may need Administrator privileges to extract the zip file to this location. Set a PATH:
- Click Advanced and then Environment Variables.
- Add the location of the bin folder of the JDK installation to the PATH variable in System Variables.
- The following is a typical value for the PATH variable:
C:\WINDOWS\system32;C:\WINDOWS;"C:\Program Files\Java\jdk-11\bin"
Select Control Panel and then System.
- Enter the variable name as JAVA_HOME.
- Enter the variable value as the installation path of the JDK (without the
bin
sub-folder). - Click OK.
- Click Apply Changes
- To see if it worked, open up the Command Prompt and type
java -version
and see if it prints your newly installed JDK.
Note | ||
---|---|---|
| ||
Check that you have replaced the Path and JavaJAVA_Home HOME environment variables from any prior versions of Java with values that point to the new version. You may need to uninstall the prior Java version and restart your server. |
...