How to update Java for an on-premise AirWatch application server

Description

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."

Resolution

Perform the following steps to safely upgrade Java for on-premise AirWatch servers (8.4 and below):

  1. Check your Java version by navigating to the Control Panel on the server.
  2. 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.
  3. Stop the AirWatch Cloud Messaging Service and the Apache Tomcat Service.
  4. 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).
  5. 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=".
  6. 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. 
  7. Edit the JAVA_HOME paths to match the new Java directory.
  8. Restart the AWCM service and check the log files to make sure there are no errors.
  9. 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.
  10. Navigate to the Java Tab and update the Java Virtual Machine field with the appropriate path.
  11. 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+):

  1. 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).
  2. Next, update the JAVA_HOME environment variable in the user and system variables.
  3. 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

Have more questions? Submit a request

0 Comments

Article is closed for comments.