4.1.11. 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:
-
Locate the file ProgramData/OPSWAT/Central/config.properties.
-
Change java_path to the desired value. For example:
java_path=C:\Program Files\Java\jre1.
8
.0_211
-
Restart OPSWAT Central Management via the tray icon.
-
-
On Ubuntu:
-
Locate the file /usr/lib/ocm/ocm.service
-
Find the EnvironmentFile variable, which should point to the file used to set up OPSWAT Central Management's environment variables. Navigate to this file.
-
Modify the JAVA_HOME or JRE_HOME variables set in this file. For example:
JRE_HOME=/home/admin/jre1.
8
.0_211
-
Restart OPSWAT Central Management via the command systemctl restart ocm.
-