It does work. Download the rpm.bin package to your home folder and then do
and then as root:
Now you still need to configure things. Visit jpackage org and set up their repository (should be documented on their site), then install the java compat package.
Install galternatives and switch to your sun java or use the CLI update-alternatives set of commands to do so.
Test from the terminal with
Now you may still wish to set up your environment(often not strictly required but it makes things easier) by putting this in your .bash_profile:
Code:
export JAVA_HOME=/path/to/java_directory
export J2RE_HOME=/path/to/java_directory/jre
export PATH = $PATH:$JAVA_HOME/bin
export classpath=.:$JAVA_HOME:$JAVA_HOME/lib
Do source .bash_profile or log out (sometimes the source command does not work too well). Then test with:
Code:
echo $JAVA_HOME
echo $J2RE_HOME
echo $PATH