Java plugin for the rtx version manager.
rtx plugin add java
Check rtx for instructions on how to install & manage versions of Java.
List candidate JDKs:
rtx ls-remote java
Install a candidate listed from the previous command like this:
rtx install java@adopt-openjdk-12
Select an installed candidate for use like this:
rtx global java@adopt-openjdk-12
In .rtx.toml
specify "ga" (default), "ea", or "all":
java = {version="latest", java_release_type="ga"}