If you find any security vulnerabilities with the version of Java 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 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.
To update the Java version for DMC, do the following:
From the terminal, run the mkdir java<version> command and navigate to Java with the cd java<version> command.
Download the OpenJDK<version>.tar.gz file for the needed Java version 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 OpenJDK<version>.tar.gz
sudo datical-control service stop datical-service
mv /root/java<version>/jdk-<version>-jre /opt/datical/jre
cp -r /root/java<version>/jdk-<version>-jre /opt/datical/jre
sudo datical-control service start datical-service