Okk finally i am able to install sun's jdk but using the jdk-6u14-linux-i586.bin.
..... after struggling for 2 hrs I surrendered and deleted the jdk-6u14-linux-i586-rpm.bin
Ok these are the steps I have followed....
Get the latest package from http://java.sun.com... the one without the 'rpm' ...
Fire the following command to make it executable
chmod a+x jdk-6u14-linux-i586.bin
Now run the installer
There will be a long license ... after agreeing with it.... it will unpack all the things in your current working dir....
Now after this it is up to you where you place it....
I have copied mine in /usr/local/java/
for that...fire the following commands one by one
mv jdk1.6.0_14 /usr/local/java
after moving it to your desired position.. i logged out from root user...and updated my ~/.bash_profile using this command
put the following line into the .bash_profile
and do not forget to keep these lines before the following line....
otherwise the default i.e. openjdk will be picked every time....
done this far i faced the same problem as mentioned on http://dnmouse.org/java.html
.... solution is also mentioned there.... remove the openjdk browser plugin.....
now the last part is installing sun's jre plugin for firefox....
just fire this command one by one....
ln -s /usr/local/java/jdk1.6.0_14/jre/plugin/i386/ns7/libjavaplugin_oji.so ./libjavaplugin_oji.so
after this last step i am able to use sun jdk as default for my profile
.... And it is working fine