This repository has been archived on 2022-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
manjaroConfiguration/installJava.sh

15 lines
633 B
Bash

# Install SDKMAN
which curl &> /dev/null || sudo apt update && sudo apt install curl # Install curl if not already installed
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
# Adding Fish support if fish is installed
if [ -x $HOME/.config/fish ] ; then
if [ ! -x $HOME/.config/fisher ] ; then # Install fisher if not installed
curl -sL https://git.io/fisher | fish -c 'source && fisher install jorgebucaran/fisher'
fi
fish -c 'fisher install reitzig/sdkman-for-fish'
fi
# Install Temurin build according with https://whichjdk.com/#adoptium-eclipse-temurin
sdk install java 17.0.1-tem