Amazon offers an open jdk for Windows (and other OS), but just for Java 8, 11 and 16. You can download it from here: https://aws.amazon.com/es/corretto/
After installing it and running the java -version command, you will see something like this:
>java -version openjdk version "1.8.0_242" OpenJDK Runtime Environment Corretto-8.242.08.1 (build 1.8.0_242-b08) OpenJDK 64-Bit Server VM Corretto-8.242.08.1 (build 25.242-b08, mixed mode)Answer from Manuel Domínguez on Stack Overflow
Videos
Amazon offers an open jdk for Windows (and other OS), but just for Java 8, 11 and 16. You can download it from here: https://aws.amazon.com/es/corretto/
After installing it and running the java -version command, you will see something like this:
>java -version openjdk version "1.8.0_242" OpenJDK Runtime Environment Corretto-8.242.08.1 (build 1.8.0_242-b08) OpenJDK 64-Bit Server VM Corretto-8.242.08.1 (build 25.242-b08, mixed mode)
The best way to do this is to use the builds from adoptopenjdk. They're very high quality and come in multiple variants for Windows ranging from zip files to MSI installers. Dead simple to install JDK 8, 11 or 15.
But, after the installation when I tried checking the version using command java -version it's showing like regular JDK.
This is because JAVA_HOME is pointing to your old JDK. You need to go to Control Panel and change the Environment Variables. Just do a search on Windows 10 for "Environment Variables" to easily find that configuration panel.
I'm having some difficulty in finding/installing OpenJDK on Windows 10.
I'm looking to install OpenJDK 1.8.0_121-b13 64-Bit specifically (to match what is running in our CI)
I (falsely) assumed it was as simple as find the installer & run that (like the oracle stuff) but I'm struggling to even find a windows installer.
Looking for someone to point me in the right direction..
EDIT: I found a way. I went here, clicked on commits here and started walking back through the commits until I found commit 3c1d6aa @ Jan 31, 2017). I then had a look at the diffs and spotted a lovely path to a zip file here. Downloaded/unzipped/ modified JAVA_HOME and it worked. :)