Originally Posted by knudfl
Adding an entry in /etc/alternatives/ :
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-7-oracle/jre/bin/java 4000
(Edit "/usr/lib/jvm/java-7-oracle/jre/bin/java" to actual path, if different.)
It does not work for me.
I am using update-alternatives --install .../jvm for all "java" commands (doing it by my own oracle java installation script).
It has influence on:
sudo update-alternatives --config java
BUT it does not have influence on
sudo update-java-alternatives -l