Add update-alternatives back in.

This commit is contained in:
esaunders 2020-08-31 15:10:20 -04:00
parent 085b69d4ee
commit 719a2b3147

View File

@ -68,6 +68,8 @@
echo \"deb [arch=amd64] https://apt.bell-sw.com/ stable main\" | sudo tee /etc/apt/sources.list.d/bellsoft.list; echo \"deb [arch=amd64] https://apt.bell-sw.com/ stable main\" | sudo tee /etc/apt/sources.list.d/bellsoft.list;
sudo apt-get update; sudo apt-get update;
sudo apt-get install bellsoft-java11-full; sudo apt-get install bellsoft-java11-full;
sudo update-alternatives --set java /usr/lib/jvm/bellsoft-java11-full-amd64/bin/java;
sudo update-alternatives --set javac /usr/lib/jvm/bellsoft-java11-full-amd64/bin/javac;
export JAVA_HOME=/usr/lib/jvm/bellsoft-java11-full-amd64; export JAVA_HOME=/usr/lib/jvm/bellsoft-java11-full-amd64;
fi", fi",
"if [ $TRAVIS_OS_NAME = osx ]; then "if [ $TRAVIS_OS_NAME = osx ]; then