In my case, I wanted to use something to manage which releases of Java I was using.
curl -s "https://get.sdkman.io" | bash
At this point, you can run sdk version
to confirm it works (after opening a new terminal or sourcing the shell file).
You can install the latest JDK version with sdk install java
.
https://www.simplilearn.com/tutorials/java-tutorial/jdk-in-java
tl;dr the Java Development Kit is a bundle of software development tools and supporting libraries combined with the Java Runtime Environment (JRE) and Java Virtual Machine (JVM).
JDK contains:
The Java Runtime Environment in JDK is usually called Private Runtime because it is separated from the regular JRE and has extra content. The Private Runtime in JDK contains a JVM and all the class libraries present in the production environment, as well as additional libraries useful to developers, e.g, internationalization libraries and the IDL libraries.