JAVA_HOME=/usr/lib/jvm/default-jdk
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/default-jdk/bin/java 300
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/default-jdk/bin/javac 300