Installing Oracle JDK or OpenJDK
Installing Oracle JDK for Use With SOTI MobiControl
About this task
Note: Oracle JDK requires an Oracle account.
To install and configure Oracle JDK for use with SOTI MobiControl:
Procedure
- Download the latest release of Oracle JDK 11.
- Run the setup file.
-
To verify that the installation was successful, run the
java -version
command.The command output should be as follows:
java version "11.0.9" 2020-10-20 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.9+7-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.9+7-LTS, mixed mode) This confirms OracleJDK is installed properly
Installing OpenJDK for Use With SOTI MobiControl
About this task
Note: OpenJDK 11.0.2 is an alternative to Oracle JDK. If you already have Oracle JDK installed, you do not need to install OpenJDK as well.
To install and configure OpenJDK for use with SOTI MobiControl:
Procedure
- Download the latest release of OpenJDK 11.
- Unzip OpenJDK to a new local folder C:\Program Files\JavaOpenJDK.
-
Set the JAVA_HOMEenvironment variable:
- In the Windows start menu, search for and select Edit the System Environment Variables.
- On the Advanced tab of the System Properties dialog box that opens, click Environment Variables.
- In the Environment Variables dialog box that opens, click New under System Variables.
- In the New System Variable dialog box that opens, enter "JAVA_HOME" in the Variable Name field. Enter the path to your Java JDK directory in the Variable Value field; for example, C:\Program Files\JavaOpenJDK\openjdk-11.0.9.1-1. Click OK.
-
Verify the
JAVA_HOME
setup:- Open the command prompt.
- Run the
echo %JAVA_HOME%
command. - Check that the above command prints the value of the
JAVA_HOME
environment variable.