Instalace Java 12 v Debian 9

wget https://download.java.net/java/GA/jdk12.0.1/69cfe15208a647278a19ef0990eea691/12/GPL/openjdk-12.0.1_linux-x64_bin.tar.gz
sudo mkdir /usr/lib/jdk
tar xvf openjdk-12*_bin.tar.gz -C /usr/lib/jdk

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jdk/jdk-12.0.1/bin/java" 0
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jdk/jdk-12.0.1/bin/javac" 0
sudo update-alternatives --set java /usr/lib/jdk/jdk-12.0.1/bin/java
sudo update-alternatives --set javac /usr/lib/jdk/jdk-12.0.1/bin/javac

sudo update-alternatives --config java