In some scenarios, it may be desirable to use a version of Java other than the version that was shipped and installed with Ansys License Manager. This section contains instructions for changing the Java version used by Ansys License Management Center.
Note: Changing the version of Java is only possible when the Java version is newer than the version supplied as part of the Ansys installation. To view the version of Java installed by Ansys, open the Ansys License Management Center and run the View Licensing Configuration Details option.
Windows or Linux:
Prior to performing the Ansys License Manager installation, set the following environment variable to point to the location of the Java version you want to use.
ANSYSLM_USER_JAVA_HOME
Run the Ansys License Manager installation.
Windows:
Set the following environment variable to point to the location of the Java version you want to use.
ANSYSLM_USER_JAVA_HOME
As an administrator, re-run the Ansys License Manager installation or run ansyslm_config.exe -usemyjava .
By default, ansyslm_config.exe is located in:
C:\Program Files\ANSYS Inc\Shared Files\Licensing\tools\bin\winx64\
Linux:
Set the following environment variable to point to the location of the Java version you want to use.
ANSYSLM_USER_JAVA_HOME
Stop any active version of Tomcat by running the stop_lmcenter script.
Run the start_lmcenter script to configure Tomcat to use your version of Java and start Tomcat.
Both the start_lmcenter script and the stop_lmcenter script are located in:
/ansys_inc/shared_files/licensing/