Platform Framework
R24 AMR | Min(s) read

Configuring Java Development Kit

This section shows you how to install Java Development Kit (JDK) on Windows and Linux platform.

Prerequisite

To install TAFJ, you must have a Java Development Kit (JDK) version 11x installed in your system.

Checking the version of installed JDK

Open Console and enter the >java -version command.

>java -version

openjdk version "11.0.16.1" 2022-08-12 LTS

OpenJDK Runtime Environment (Red_Hat-11.0.16+1.1-1) (build 11.0.16.1+1-LTS)

OpenJDK 64-Bit Server VM (Red_Hat-11.0.16+1.1-1) (build 11.0.16.1+1-LTS, mixed mode)

If the JDK version reported is not 11.x, then you should download and install the required version. Click here to download the latest Java JDK version.
If you have installed java 11 but the command java -version does not report the correct version, then you need to check the PATH of the environment variable. This issue usually occurs when your PATH environment variable points to another version.

It is a bad practice to have your Java Virtual Machine (JVM) in the PATH. It is recommended to remove your JVM from the PATH. The best practice is to set up an environment variable called JAVA_HOME pointing to the root directory of your Java Development Kit (JDK) installation. Then, you can reference JAVA_HOME/bin in your PATH environment variable. The different scripts in TAFJ_HOME/bin will require the environment variable JAVA_HOME.

Setting JAVA_HOME on a Linux Platform

Set the environmental variable using the following command:

export JAVA_HOME=path_to_your_jdk

You can also update the profile. file to set the environmental variable.

Setting JAVA_HOME on Windows

You can setup the JAVA_HOME on Windows using the following procedure.

  1. Go to Start menu > Settings > Control Panel > System > Advanced > Environment Variables.
  2. Under System variables click the New… button and enter JAVA_HOME as Variable name and the path to your Java JDK directory under Variable value.
  3. Click OK.

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 27, 2024 5:14:03 PM IST