After extracting the packages say at (/usr/java/jdk_1.6_28/) just link it to /usr/bin/java
NOTE: If you already have /usr/bin/java, just move it to /usr/bin/java_bk
ln -s /usr/java/jdk_1.6_28/bin/java /usr/bin/java
Now check java version to confirm.
If you like this article, then please consider sharing it. Sharing really inspires us to do things much better!!