Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you find any security vulnerabilities with the version of Java Java version 11.0.8 that DMC uses, you can update the version manually.While DMC comes with Java 11.0.8, use the 11 level of Java as a replacement. Replace the existing version with any version between replace it with a different 11.x version of Java manually. (Be sure to keep a copy of the 11.0.8 and 11.0.17.Before upgrading DMC after the Java upgrade, put back the previous version of Java (11.0.8) to the /opt/datical/old_jre directory for the DMC upgrade process to be successful. After your DMC upgrade is complete, change the Java version to the one you want to use.java version because you will need it the next time you will upgrade your DMC.)

To update the Java version for DMC from 11.0.8 to a different 11.x version, do the following (fill in the actual java version number in the commands below):

  1. From the terminal create a directory for your new Java 11.x version, run

...

  1. mkdir java<version>

...

  1. Navigate to your new directory, run cd java<version>

  2. Download the OpenJDK<version>.tar.gz file for the

...

  1. Java 11.x version you want to use and put it in your new java<version> directory.
    Example: wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.8+10/OpenJDK11U-jre_x64_linux_hotspot_11.0.8_10.tar.gz

Note: For more information on how to download and install prebuilt OpenJDK packages, see the OpenJDK installation page.

Run the following commands by applying your version:
tar xzf so DMC will use the other 11.x version of Java (that you already downloaded):

Code Block
tar xzf OpenJDK<version>.tar.gz

...


sudo datical-control service stop datical-service

...


mv /

...

opt/

...

datical/

...

jre /opt/datical/old_jre

...


cp

...

 /root/

...

java11.xx.xx/jdk-

...

11.xx.xx-jre /opt/datical/jre

...


sudo datical-control service start datical-service

IMPORTANT: If you have manually changed the java version used by DMC, you will need to restore DMC’s default version of Java (11.0.8) before any time that you upgrade DMC. Move or copy Java 11.0.8 from the /opt/datical/old_jre directory back to the /opt/datical/jre directory prior to starting your DMC upgrade. DMC expects Java version 11.0.8 to be in the /opt/datical/jre directory for the DMC upgrade process to be successful. After your DMC upgrade is complete, you can change to a different 11.x java version again.