Install Java

Here are some simple instructions for installing Open JRE/JDK built by Eclipse Temurin, which is free and popular.

You can also install JRE/JDK built by another organization (refer to the organization’s documentation).


Open Eclipse Temurin web site in your browser.


  • Operating System: choose your own.
  • Architecture: the CPU architecture. Choose your own.
  • Package Type: choose JRE.
  • Version: latest LTS version is recommended. Refer to the Release Table for available versions.

Download your desired JRE/JDK after choosing the parameter values. For easy installation, .msi file is recommended for Windows user, and .pkg file is recommended for MacOS user.


  • Double click the downloaded .msi file to install Java. Keeping all default settings during the wizard run is the simplest way.

  • Click the downloaded .pkg file to install Java.

  • Extract the downloaded package to a folder. Here we refer to the folder as <Java_Home>. Add <Java_Home>/bin to your Path environment variable.


To verify Java is on your machine, just open a command line window/terminal and run

java -version

You should see something like

openjdk version "17.0.4" 2022-07-19
OpenJDK Runtime Environment Temurin-17.0.4+8 (build 17.0.4+8)
OpenJDK 64-Bit Server VM Temurin-17.0.4+8 (build 17.0.4+8, mixed mode, sharing)