how to install another Java version using /etc/alternatives


I would like to replace the OpenJDK from IcedTea6 by the original version from Sun. It seems that SuSE uses a special scheme /etc/alternatives. How can I add Sun’s Java as an alternative to OpenJDK here?

golpe@viper:~> java -version
java version "1.6.0_0"
IcedTea6 1.4 (suse-24.5.2-x86_64) Runtime Environment (build 1.6.0_0-b14)
OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode)

Many thanks.

It’s actually an idea taken from Debian. There’s is quite a bit of sharing of good ideas behind the scenes. Do man update-alternatives.