Installing Java 11

Learn how to install Java 11.

Before you begin

From iFix 7 onwards, Java 11 is required on any server that runs any of the following components:
  • Kafka and the associated Zookeeper
  • Spark
  • REST Mediation service
  • Cassandra

Procedure

  1. To install Java 11, run the following commands as root:
    yum install java-11-openjdk
    update-alternatives --config java
  2. Select the number associated with openjdk 11.
  3. Take this step as an alternative to steps 1 and 2, where you already have Java 11 installed but it is not recognized when you run which java. Set the JAVA_HOME parameter and insert the following lines in the ~/.bashrc files (change /opt/IBM/jdk-11.0.10+9-jre/ to match the location of the Java 11 JRE in your system) :
    export JAVA_HOME=/opt/IBM/jdk-11.0.10+9-jre/
    export PATH=$JAVA_HOME/bin:$PATH