Most of the applications require sun JDK as prerequisite. OpenSuse above 12.1 versions does not includes sun java package in the repository by default due to license issues.
Follow the below steps to install Sun JDK in OpenSuse 12.1.
Check the current version from a terminal window.
By default openJDK will be installed.Filter installed version of OpenJDK to uninstall it.
# rpm -qa | grep jdk
Remove it from the system. Replace your system specific OpenJDK version that you got from above command.
# rpm -e java-1_6_0-openjdk-18.104.22.168_b22.214.171.124-16.1.x86_64
Verify that the default Java package is uninstalled.
Download latest JDK rpm package from Oracle site(jdk-7u25-linux-x64.rpm)
change directory to Downloads directory to install JDK.
All essential java commands seem works fine but there is something we have to commit, finally: Setting JAVA_HOME directory in PATH.
Suse stores all its profile information /etc/profile.d directory, grant access under the /etc/profile.d with root.
localhost:/etc/profile.d # su
Create jdk.sh file under /etc/profile. and write output of below echo command.
# echo 'export JAVA_HOME=/usr/java/jdk1.7.0_25'>/etc/profile.d/jdk.sh
Append output of echo command.
# echo 'export PATH=$JAVA_HOME/bin:$PATH'>>/etc/profile.d/jdk.sh
# source /etc/profile.d/jdk.sh
Finally, You have to logout and login to see the effect with your own user.