This post has already been read 1077 times!
This may be the easiest jdk installation I’ve ever done on mac.
Now attempting installation...
Looking for a previous installation of SDKMAN...
Looking for unzip...
Looking for zip...
Looking for curl...
Looking for sed...
Installing SDKMAN scripts...
Create distribution directories...
Getting available candidates...
Prime platform file...
Prime the config file...
Installing script cli archive...
* Downloading...
######################################################################## 100.0%
* Checking archive integrity...
* Extracting archive...
* Copying archive contents...
* Cleaning up...
Installing script cli archive...
* Downloading...
######################################################################## 100.0%
* Checking archive integrity...
* Extracting archive...
* Copying archive contents...
* Cleaning up...
Set version to 5.18.2 ...
Set native version to 0.4.6 ...
Attempt update of login bash profile on OSX...
Added sdkman init snippet to /Users/dillera/.bash_profile
Attempt update of zsh profile...
Updated existing /Users/dillera/.zshrc
All done!
You are subscribed to the STABLE channel.
Please open a new terminal, or run the following in the existing one:
source "/Users/dillera/.sdkman/bin/sdkman-init.sh"
Then issue the following command:
sdk help
Enjoy!!!
dillera@blackball ~ $ source "/Users/dillera/.sdkman/bin/sdkman-init.sh"
dillera@blackball ~ $ sdk help
NAME
sdk - The command line interface (CLI) for SDKMAN!
SYNOPSIS
sdk [candidate] [version]
DESCRIPTION
SDKMAN! is a tool for managing parallel versions of multiple JVM related
Software Development Kits on most Unix based systems. It provides a
convenient Command Line Interface (CLI) and API for installing, switching,
removing and listing Candidates.
SUBCOMMANDS & QUALIFIERS
help [subcommand]
install [version] [path]
uninstall
list [candidate]
use
config no qualifier
default [version]
home
env [init|install|clear]
current [candidate]
upgrade [candidate]
version no qualifier
offline [enable|disable]
selfupdate [force]
update no qualifier
flush [tmp|metadata|version]
EXAMPLES
sdk install java 17.0.0-tem
sdk help install
dillera@blackball ~ $ sdk install java
Downloading: java 21.0.4-tem
In progress...
######################################### 100.0%
Repackaging Java 21.0.4-tem...
Done repackaging...
Cleaning up residual files...
Installing: java 21.0.4-tem
Done installing!
Setting java 21.0.4-tem as default.
dillera@blackball ~ $ java -version
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode)
dillera@blackball ~ $