I am attempting to install Oracle java on OpenSUSE 12.1. I have installed and configured it as an alternative and all appears to be well. However when I look at the value of JAVA_HOME it shows as:
Although this link does not appear to exist. In the JVM directory I have the listing of:
drwxr-xr-x 4 root root 4096 Feb 24 20:38 java-1.6.0-openjdk-1.6.0
lrwxrwxrwx 1 root root 27 Feb 24 20:38 jre-1.6.0 -> /etc/alternatives/jre_1.6.0
lrwxrwxrwx 1 root root 28 Feb 24 20:38 jre-1.6.0-openjdk -> java-1.6.0-openjdk-1.6.0/jre
lrwxrwxrwx 1 root root 29 Feb 24 20:38 jre-openjdk -> /etc/alternatives/jre_openjdk
I tried to use the update-alternatives to install a JRE but received a message about it being a slave to java. I'm a little confused with that message as the java config appears to be working ok the sym link was updated and java -version returns the message I would expect.
Should I just update JAVA_HOME to point to the directory I wish to use (/usr/java/jdk1.7.0_03/jre/)?
I'd prefer to use update-alternatives to perform the config incase I decide to switch versions at a later time. Can somebody help make sense of this information, I'm a little lost at what would be the best action to take.