Skip to content

Commit

Permalink
Add jdk17 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
wecharyu authored Jan 16, 2024
1 parent f858fba commit c67d8af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bin/sw
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ for component in "${components[@]}";do
cd $SW_DIR
case "$component" in
java)
sudo update-java-alternatives --set zulu-$1-amd64
echo "export JAVA_HOME=/usr/lib/jvm/zulu-$1-amd64/" | sudo tee /etc/profile.d/java.sh
sudo update-java-alternatives --set zulu$1-ca-amd64
echo "export JAVA_HOME=/usr/lib/jvm/zulu$1-ca-amd64/" | sudo tee /etc/profile.d/java.sh
echo "open a new shell or run: . /etc/profile.d/java.sh"
;;
hive-dev)
Expand Down
10 changes: 6 additions & 4 deletions tools/install_java_zulu
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/bash -e

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
apt-add-repository 'deb http://repos.azulsystems.com/debian stable main'
apt-get install gnupg ca-certificates curl
curl -s https://repos.azul.com/azul-repo.key | sudo gpg --dearmor -o /usr/share/keyrings/azul.gpg
echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | sudo tee /etc/apt/sources.list.d/zulu.list

apt-get update
apt-get install -y zulu-8 zulu-11
apt-get install -y zulu8-jdk zulu11-jdk zulu17-jdk

update-java-alternatives --set zulu-8-amd64
update-java-alternatives --set zulu8-ca-amd64

/tools/build_cleanup

0 comments on commit c67d8af

Please sign in to comment.