3.5. Changing the Version of Java Used by ANSYS License Management Center

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.


3.5.1. Changing the Java Version During a New Installation of ANSYS License Manager

Windows or Linux:

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

  2. Run the ANSYS License Manager installation.

3.5.2. Changing the Java Version on an Existing Installation of ANSYS License Manager

Windows:

  1. Set the following environment variable to point to the location of the Java version you want to use.

    ANSYSLM_USER_JAVA_HOME

  2. 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\

    Note:  When running this command on Windows 8.1, the message "Qt: Untested Windows version 6.2 detected!" may be displayed. You can safely ignore this message.


Linux:

  1. Set the following environment variable to point to the location of the Java version you want to use.

    ANSYSLM_USER_JAVA_HOME

  2. Stop any active version of Tomcat by running the stop_lmcenter script.

  3. 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/

Release 18.2 - © ANSYS, Inc. All rights reserved.