How can we help you?
Changing the Java version for DMC
Note: This documentation uses version 11.0.8 as an example because the latest version of Java that DMC includes is OpenJDK 11.0.8, 2020-07-14.
If you find any security vulnerabilities with the version of Java that DMC uses, you can replace it with a different 11.x version of Java manually.
Note: Keep a copy of the 11.0.8 java version because you will need it the next time you upgrade the DMC.
To update the Java version for DMC from 11.9=0,=.8 to a different 11.x version, do the following:
Note: fill in <version> with your java version number.
- If you are starting from DMC 7.17 and before, skip this step and move on to step 2.
If you are starting from DMC 7.18 and later, install thefreetype fontconfig dejavu-sans-fonts packages
by running theyum -y install freetype fontconfig dejavu-sans-fonts;
command. - From the terminal, create a directory for your new Java 11.x version by running the
mkdir java<version>
command. - Navigate to Java with the
cd java<version>
command. - Download the
OpenJDK<version>.tar.gz
file for the needed Java 11.x version and put it in your newjava<version>
directory. - Run the following commands to apply the other Java 11.x version.:
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.
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 the Java version was manually changed, you will need to restore DMC's default version of Java (11.0.8) before upgrading DMC. Before upgrading DMC after the Java upgrade, move or copy the previous version of Java (11.0.8) from the /opt/datical/old_jre
directory back to the /opt/datical/jre
directory prior to upgrading your DMC. 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 the Java version to a different 11.x java version again.