You can install the one of the versions listed below via SDKMAN or manually by following the installation guide on their website.
– Azul Zulu.
– Eclipse Temurin from Adoptium.
You can easily install Java via SDKMAN. After installation you can use the command sdk list java
to see available java versions. The version you use depends on your context, meaning which app you are trying to use it in. Therefore, always refer to the version mentioned in the README.md file of the repository.
Other useful commands:
List available Java implementations
sdk list java
Installing Java OpenJDK version
sdk install java x.y.z-open
Switching between different java versions
sdk use java <version>
Setting a default version
sdk default java <version>
Maven can also be installed with SDKMAN or manually by following their installation guide: https://maven.apache.org/install.html
sdk install maven x.y.z
mvn clean install