Install SUN/Oracle JDK on CentOS or Fedora

Posted on Tue 19 April 2011 in CentOS • Tagged with CentOS, Java, JDK

1. Download SUN or now Oracle JDK (.rpm.bin format) from Oracle Website: http://www.oracle.com/technetwork/java/javase/downloads/index.html

  1. make .bin file executeable
chmod +x <file>.rpm.bin
  1. run the installer
./<file>.rpm.bin
  1. link the installed jdk into your environment
alternatives --install /usr/bin/java …

Continue reading