4.1.9. Java Configuration

On Windows and Ubuntu systems, the Java installation used by OPSWAT Central Management can be changed by following the below guidelines:

  • On Windows:

    1. Locate the file ProgramData/OPSWAT/Central/config.properties.

    2. Change java_path to the desired value. For example:

      java_path=C:\Program Files\Java\jre1.8.0_211
    3. Restart OPSWAT Central Management via the tray icon.

  • On Ubuntu:

    1. Locate the file /usr/lib/ocm/ocm.service

    2. Find the EnvironmentFile variable, which should point to the file used to set up OPSWAT Central Management's environment variables. Navigate to this file.

    3. Modify the JAVA_HOME or JRE_HOME variables set in this file. For example:

      JRE_HOME=/home/admin/jre1.8.0_211
    4. Restart OPSWAT Central Management via the command systemctl restart ocm.