This article walks through how to upgrade the Java version of an AirWatch application server.
Note: If you do not update the file paths and variables on the server, the AWCM service and ACC (if enabled) will not function properly. The following error may display:
"Cannot connect to AWCM."
Perform the following steps to safely upgrade Java for on-premise AirWatch servers (8.4 and below):
- Check your Java version by navigating to the Control Panel on the server.
- Update Java through the Java Control Panel, then uninstall the older version if it is not automatically uninstalled. Note: Make sure you have the 64-bit version.
- Stop the AirWatch Cloud Messaging Service and the Apache Tomcat Service.
- Note the new file path found in the Java directory by going to C:\Program Files\Java (for example: C:\Program Files\Java\jre1.8.0_25).
- Change the JVM value at in the file at <AIRWATCH_INSTALL_DRIVE>/AirWatch/AirWatch7.3/AWCM/service/AWCMService.exe.parameters. Edit the line that begins with "JVM=".
- Next, update the JAVA_HOME environment variable in the user and system variables. Navigate to Control Panel > System > Advanced System Settings. Select the Advanced Tab and click Environment Variables.
- Edit the JAVA_HOME paths to match the new Java directory.
- Restart the AWCM service and check the log files to make sure there are no errors.
- Update the Java Virtual Machine Path in Tomcat by navigating to the C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin folder and launching Tomcat7w.exe.
- Navigate to the Java Tab and update the Java Virtual Machine field with the appropriate path.
- Restart the Apache service and make sure that connectivity is restored.
Perform the following steps to safely upgrade Java for on-premise AirWatch servers (9.0+):
- Edit the JAVA_HOME paths to match the new Java directory.Note the new file path found in the Java directory by going to C:\Program Files\Java (for example: C:\Program Files\Java\jre1.8.0_25).
- Next, update the JAVA_HOME environment variable in the user and system variables.
- Navigate to Control Panel > System > Advanced System Settings. Select the Advanced tab and click Environment Variables.
For additional information on JRE, please refer to the documentation on Setting the JAVA_HOME Variable in Windows.
0 Comments