Sukma Wardana

Installing Adoptium Eclipse Temurin 17 on Windows 10

java

The "Eclipse Temurin" recommend for OpenJDK binary distribution. Released by Eclipse Adoptium which was before known as AdoptOpenJDK. If you still confused about what is OpenJDK binary distribution, read this post.

I will guide you in installing Eclipse Temurin version 17, which is the latest LTS version, on Windows 10. From the start till you could run Java command on Windows Command Prompt.

Download and Install Eclipse Temurin

First, get the Eclipse Temurin installer from the Adoptium Website. The download button will choose installer based on your Operating System. So, make sure to download .msi installer.

When it’s done, double click the .msi installer.

Welcome Setup Wizard

Setup Wizard

The first time shown to you after double-clicking the .msi installer is the Setup Wizard window. There is nothing special from the first step, click the Next button.

Setup Configuration

Setup Configuration

The second step is to configure the installation process. Unless you understand what you want to configure or optimize, leave it as is. So, click the Next button.

Process the Installation Setup

Start to Install

The third is asking your confirmation whether could process the installation or not. Click the Install button already.

User Access Control

User Access Control

Don’t worry if the User Access Control window pops up. Click Yes to allow the installation of Eclipse Temurin on your machine.

Installation Progress

Installation Progress

The installation process is not that long. You can take a break and sip your coffee while waiting for the process.

Installation Completed

Installation Completed

When the progress is done, the Completed Setup Wizard window will show up. Click Yes to confirm.

Now, you already have installed Eclipse Temurin 17. You could verify with open the Command Prompt and executing below command:

java --version    (1)
javac --version   (2)
  1. Check the Java Runtime Version.

  2. Check the Java Compiler Version.

Setup %JAVA_HOME%

The only thing that missing from Eclipse Temurin is it does not set up %JAVA_HOME% for you. So, if you’re using Apache Maven or Gradle on Command Prompt you will have an error. Here is an example from Apache Maven when %JAVA_HOME% is missing

C:\Users\anadr>mvn --version The JAVA_HOME environment variable is not defined correctly This environment variable need to run this program NB: JAVA_HOME should point to a JDK, not a JRE

— shell

You could set up the %JAVA_HOME% with the below steps:

Open Edit Environment Variable

Edit Environment Variables

On the search prompt type Edit Environment and you will have autocompletion for Edit Environment variables for your account. Click or type Enter to open it.

New Environment Variable

Environment Variables Window

To set up the JAVA_HOME is to add on the User Variables section. So, click the New…​ button on the User Variables section to add the JAVA_HOME.

Eclipse Temurin JAVA_HOME

New User Variable

When the New User Variable Window is showing up what you need to do is:

  • Type JAVA_HOME for the variable name.

  • Click the Browse Directory…​ button and find the location of installed Eclipse Temurin in your machine.

  • When it is done, click the Ok button.

Now, you can verify the JAVA_HOME and java command on your Command Prompt.

Command Prompt

If you have any comments or corrections please feel free to email them to me. Also, if you found any of the content on this website useful consider buy me a coffee ;)