Skip to content

Installing Java

GeoNetwork Enterprise requires a Java 8 environment in order to run.

Warning

Do not install a more recent Java version (Java 11, 21, ...). GeoNetwork Enterprise has been compiled to work only with Java 8.

OpenJDK is now the lead project for the Java ecosystem, with a range of distributions providing downloads available for use.

We recommend using your operating system package manager to install OpenJDK Java 8. We recommend the OpenJDK provided the Temurin OpenJDK distribution for windows users.

Reference:

If you are running Windows, follow these steps to install the Temurin OpenJDK distribution:

  1. Navigate to the Eclipse Temurin OpenJDK distribution download page

  2. Select Temurin 8 (LTS) as the version to download.

  3. Select Windows as your Operating System and x64 as your architecture.

  4. Select Package Type JDK.

  5. Click on the available JDK msi file download link for the above selected options, to download the Temurin OpenJDK prebuilt binary.

  6. Run the downloaded msi file and follow the instructions of the installer. When prompted about the features to install, select the :Set JAVA_HOME variable (it is disabled by default)

  7. When the installation is over, to ensure that Java is now correctly installed, open a console and type java -version. The output should look something like this:

    java -version
    
    openjdk version "1.8.0_312"
    OpenJDK Runtime Environment (Temurin)(build 1.8.0_312-b07)
    OpenJDK 64-Bit Server VM (Temurin)(build 25.312-b07, mixed mode)
    

If you are running Linux, it's recommended to install the OpenJDK 8 JDK supported to your Linux distribution.

Follow these steps in Ubuntu (other Linux versions may require a different install process):

  1. Open a terminal and update your package index by running:

    sudo apt update
    
  2. Install Java 8 by running:

    sudo apt install openjdk-8-jdk
    
  3. Verify that java is available:

    java -version
    
    openjdk version "1.8.0_262"
    OpenJDK Runtime Environment (build 1.8.0_262-b10)
    OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode)
    

If you are running Linux, it's recommended to install the OpenJDK 8 JDK supported to your Linux distribution.

Follow these steps in Ubuntu (other Linux versions may require a different install process):

  1. Open a terminal and update your package index by running:

    sudo yum install java-1.8.0-openjdk-devel
    
  2. Verify that java is available:

    java -version
    
    openjdk version "1.8.0_262"
    OpenJDK Runtime Environment (build 1.8.0_262-b10)
    OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode)