update-alternatives
maintains symbolic links determining default commands
This is a reminder to install java and javac alternatives.
Install java compiler alternatives
$ sudo update-alternatives --install /usr/bin/javac javac /home/bchenebault/Apps/jdk1.5.0_22/bin/javac 1
$ sudo update-alternatives --install /usr/bin/javac javac /home/bchenebault/Apps/jdk1.6.0_45/bin/javac 2
$ sudo update-alternatives --install /usr/bin/javac javac /home/bchenebault/Apps/jjdk1.7.0_79/bin/javac 3
$ sudo update-alternatives --install /usr/bin/javac javac /home/bchenebault/Apps/jdk1.8.0_101/bin/javac 4
Install java executor alternatives
$ sudo update-alternatives --install /usr/bin/java java /home/bchenebault/Apps/jdk1.5.0_22/bin/java 1
$ sudo update-alternatives --install /usr/bin/java java /home/bchenebault/Apps/jdk1.6.0_45/bin/java 2
$ sudo update-alternatives --install /usr/bin/java java /home/bchenebault/Apps/jjdk1.7.0_79/bin/java 3
$ sudo update-alternatives --install /usr/bin/java java /home/bchenebault/Apps/jdk1.8.0_101/bin/java 4
$ sudo update-alternatives --config java
$ sudo update-alternatives --config javac
$ sudo update-alternatives --get-selections