How to change JDK on Elasticsearch 8.x — Windows version

Munawar Syukur
2 min readNov 17, 2022

--

For the last few days, I have been challenged by customers to change the Elasticsearch bundle JDK to Eclipse Temurin.

I’ve searched and googled around. There are no specific steps that can be followed. Most of the online articles happen on Linux, however I was looking for, windows OS.

For the above reason, I am creating this articles hoping that others that having the same issue with me can value this articles and follow thru.

  1. Download the Temurin on https://adoptium.net/en-GB/temurin/, suggestion to download the LTS.
  2. Install it to any location that you want to place it. In my case I was install on C:\Program Files\Eclipse Adoptium\jdk-17.0.5.8-hotspot\
  3. Add JDK on the Windows Environment Variables, add ES_JAVA_HOME and set the temurin location path, then logoff from windows and login again to have immediate effects.
  4. Verify the settings using Windows Command Prompt by typing echo %ES_JAVA_HOME% the capture should be shown as below.
Windows Advanced Variables
Windows Environment Variables settings
echo %ES_JAVA_HOME%

Once the temurin setup is completed and verified, next we need to test and ensure with Elasticsearch. In this article I was using version 8.5.0.

Elasticsearch JDK Validation

If you see the red box on the capture, meaning your JDK has been successfully changed.

Feel free to ask me anything if you have any questions on Elasticsearch.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Munawar Syukur
Munawar Syukur

Written by Munawar Syukur

A Father of 4 Wonderful kids, A Loving Husband, A Casual Reader and An IT Engineer.

No responses yet

Write a response