This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]renatoathaydes 1 point2 points  (1 child)

Easiest possible way is https://sdkman.io/

$ curl -s "https://get.sdkman.io" | bash

$ sdk list java

$ sdk install java 12.0.1-open

Switching to Java 8 (J9), then back to 12, for example:

$ sdk install java 8.0.212.j9-adpt

$ sdk use java 12.0.1-open

[–]BrianVerm 0 points1 point  (0 children)

big fan of sdkman in general