For example, the following command install java
to /usr/bin/java
update-alternatives --install /usr/bin/java java /opt/java7/bin/java 1 && update-alternatives --set java /opt/java7/bin/java
What if I also want to set java
under /bin/java
at the same time?