Issue
As a java developer I use some software also written in java (Intellij, maven...) and also others (dbeaver) and I think my disk has repeated downloads of the java platform.
Is it possible to set up a central, personally managed location for these artifacts?
Solution
SDKMAN!
SDKMAN! is your friend. This tool is a well-designed collection of shell scripts for:
- Learning about what versions of Java are available from each of several vendors.
- Downloading and installing those JDKs.
- Tracking your currently installed JDKs.
- Setting the current default JDK to use.
This tool works for Unix-oriented OSes. This includes macOS, Linux, Cygwin, Solaris, and FreeBSD.
Scripts are written in bash, but run in zsh too.
If your favorite JDK vendor is not listed within SDKMAN!, ask the vendor to submit the metadata for their releases.
IntelliJ
The IntelliJ IDE recently gained a feature to download and install a JDK from various vendors, on your command.
Answered By - Basil Bourque
Answer Checked By - Cary Denson (JavaFixing Admin)