Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Image RemovedImage Added

📙 You will learn

How to transition to OpenJDK11.

Prerequisites

Audience: IT Professional and/or End User
Difficulty: Intermediate
Time needed: Approximately 30 minutes
Tools required: Tomcat, MySQL or MS SQL Server

As of version 2.7.9, ThreadFix will run with OpenJDK 11. It will also continue to run with Oracle Java 8 or Open JDK 8, so transitioning is optional.

Below are the basic steps needed to transition to Open JDK 11.

Note

Java KeyStore and/or TrustStore

If your Java's KeyStore and/or TrustStore reside within your existing Java directory (e.g., /<jre path>/lib/security/cacerts), you may need to copy it over to the new Java directory (or an alternate location) and update any reference to it, such as within Tomcat's server.xml file and/or where your JAVA_OPTS are specified (e.g., Linux: tomcat.service; Windows: within the Configure Tomcat applet).

CentOS

Run the following command:

Code Block
sudo yum install java-11-openjdk

To make this version the one used by the OS, run the sudo alternatives --config java command and select it.

Verify the default version of Java by running the following command: java -version

Ubuntu

Run the following commands:

Code Block
sudo apt-get update
sudo apt-get install openjdk-11-jdk

To make this version the one used by the OS, run the sudo update-alternatives --config java command and select it.

Verify the default version of Java by running the following command: java -version

Windows

  1. Download the 'x86 64-bit' version of the JRE zip file here (e.g., zulu11.48.21-ca-jre11.0.11-win_x64.zip).

  2. Extract the zip file to a desired location (e.g., C:\openjdk11).

  3. Update your JAVA_HOME environment variable (System) to point to the above path.

  4. Verify the default version of Java by running the following in a Command Prompt: java -version.

  5. Update the Java Virtual Machine field in the Configure Tomcat applet to the path of the new jvm.dll (e.g., %JAVA_HOME%\bin\server\jvm.dll).

Note

In some cases, the updated Path and JAVA_HOME environment variable will only take effect after rebooting the server.

To check each of these, you can run the following commands in a Command Prompt:

  • To check the Path: set path

  • To check JAVA_HOME: set java_home

Table of

contents

Contents

Table of Contents
excludeTable of content
https://threadfix.it/ | www.denimgroup.com
© Copyright 2020 Denim Group, LTD. All Rights Reserved.