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)
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
Setting JAVA_HOME on Windows
To set JAVA_HOME on windows,
- Go to Start menu > Settings > Control Panel > System > Advanced > Environment Variables.
- 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.
- Click OK.
In this topic