Friday, December 23, 2011

Oracle Java installation on Centos 6.2

I have just successfuly installed the latest Oracle Java package in a fresh Centos 6.2 amd64 system:
  • Downloaded the latest rpm from the oracle website
  • chmod +x jre-6u30-linux-x64-rpm.bin
  • ./jre-6u30-linux-x64-rpm.bin
  • update-alternatives --install /usr/bin/java java /usr/java/latest/bin/java 1
  • update-alternatives --config java
  • selected the oracle java thing
For the firefox java plugin the following suffice:
  • update-alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/lib/amd64/libnpjp2.so 1
  • update-alternatives --config libjavaplugin.so.x86_64
  • select the oracle java thing
The above steps are reported here just for my reference as I am constantly trying to remember the update-alternatives syntax.