Java runtime environment

Smartsite 7.9 - ...

Purpose

The Java runtime environment (Java RTE, or JRE for short) is required to run Elastic Search, Kibana and Tika. JRE includes runtime libraries and includes a Java virtual machine. OpenJDK stands for Open Java Development Kit.

Version

Use Java v18.

Installation for Elastic Search

Use Java v18.36 as bundled with Elastic Search.

Unpacking and installing Elastic Search will result in a folder jdk, for example:

C:\Program Files\elasticsearch\7.17.3\jdk
  1. Previous installations may have instructed to create a system environment variable JAVA_HOME and/or to include the Java bin folder in the system PATH. Remove both settings. For information only: Elastic Search itself establishes these settings.

Installation for Kibana

Kibana is typically installed on one of servers of the Elastic Search cluster. The service manager nssm is used to install Kibana as a Windows service. Nssm allows to specifiy the Java runtime environment. Specify the jdk as bundled with Elastic Search.

Installation for Tika

Use Java v18.0.1 as included in the installation media:

openjdk-18.0.1_windows-x64_bin.zip

Install Java:

  1. Create a folder C:\Program Files\Java. Use the appropriate drive, C:\ or another drive.
  2. Unpack openjdk-18.0.1_windows-x64_bin.zip in a temporary folder, for example resulting in a subfolder E:\Temp\openjdk-18.0.1_windows-x64_bin.
  3. Move subsubfolder jdk-18.0.1 to C:\Program Files\Java\jdk-18.0.1.
  4. Previous installations may have instructed to create a system environment variable JAVA_HOME and/or to include the Java bin folder in the system PATH. Remove both settings. For information only: Tika will run under control of the nssm service manager. JAVA_HOME will be specified in the configuration of the service manager. The system PATH is not required because the absolute path of the JRE will be specified in the nssm configuration.