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....
Code:
Get the latest package from http://java.sun.com... the one without the 'rpm' ...
Fire the following command to make it executable
Code:
chmod a+x jdk-6u14-linux-i586.bin
Now run the installer
Code:
./jdk-6u14-linux-i586.bin
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
Code:
mkdir /usr/local/java
Code:
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
Code:
gedit ~/.bash_profile
put the following line into the .bash_profile
Code:
export JAVA_HOME=/usr/local/java/jdk1.6.0_14
export PATH=$PATH:$JAVA_HOME/bin
and do not forget to keep these lines before the following line....
Code:
PATH=$PATH:$HOME/bin
export PATH
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....
Code:
cd ~/.mozilla/plugins
and then
Code:
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