-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·29 lines (23 loc) · 928 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·29 lines (23 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env zsh
# Import our common helper scripts
source "${ZSH}/lib/_helpers"
# See also
# https://adoptium.net/
# https://adoptium.net/faq.html#temurinName
# This is the project and brand name for the binaries that the Eclipse Foundation produces. You can think of these as the successor binaries to AdoptOpenJDK.
#
# https://adoptopenjdk.net (find the latest release version from here)
# https://github.com/AdoptOpenJDK/homebrew-openjdk (contains additional versions)
# brew tap adoptopenjdk/openjdk
#
# https://dzone.com/articles/a-guide-to-java-versions-and-features
#
# brew search java
# brew search jdk
require_installed_brew "jenv"
require_installed_brew_cask "temurin"
# Add java versions to jenv
/usr/libexec/java_home | xargs jenv add
# See also: ls -la /Library/Java/JavaVirtualMachines
echo "\nInstalled Java versions:"
prefix_lines " " "$(/usr/libexec/java_home -V 2>&1)"