Can I manage sdks and jres in a central place, shared between aplications?

Viewed 37

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?

1 Answers

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.

Besides JDKs for Java, SDKMAN can also manage installs for a few dozen other tools including Gradle & Maven, Spring Boot, and Apache Tomcat.

IntelliJ

The IntelliJ IDE recently gained a feature to download and install a JDK from various vendors, on your command.

Related