OpenJDK
Overview
Oracle JDK requires licensing for use in commercial products. OpenJDK is free, We look at the various distributions of OpenJDK that are available.
Distributions
Oracle made JDK 17 free for all again, however if you hold existing Oracle Master Agreement ("OMA") there is still some confusion.
- Azul Platform Core https://www.azul.com/downloads/
- Amazon Corretto https://aws.amazon.com/corretto/
- Red Hat OpenJDK https://developers.redhat.com/products/openjdk/download
- Adoptium (AdoptOpenJDK) https://adoptium.net/
JNLP
In OpenJDK, javaws is missing, this is need to open old JNLP files if the project has it. You can download the IceTea binaries to get JNLP working in amazon correto.
Edit $icedTeaDirectory\bin\javaws.bat and replace set INST_JAVA_HOME= with set INST_JAVA_HOME=”$correttoDirectory” to use Corretto Java runtime
http://icedtea.wildebeest.org/download/icedtea-web-binaries/1.8/
Download and unzip the zip file. Add the $icedTeaDirectory\bin\ path to the path environment variable and invoke
1javaw.bat client.jnlp
Versions
To deal with different versions of java you can use jenv
1brew install jenv
Set the jdk version either globally or locally
1jenv versions
2jenv version
3jenv global 11.0
4jenv local 17.0
Tools
You can also download the various tools needed to work with java
- VisualVM - https://visualvm.github.io/
- Memory Analyzer - https://www.eclipse.org/mat/
- Mission Control - https://www.azul.com/products/components/azul-mission-control/