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/ /usr/java/latest/lib/amd64/ 1
  • update-alternatives --config
  • 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.

Christodoulos Fragoudakis
 chfrag AT
  chfrag AT
Infinite loops around computer science, programming, system administration and teaching.