Switch Java on CentOS

If GNU Java was installed on a CentOS box and you plan not to remove it

  • Install the JDK/JRE from Sun
  • Change the alternatives config
    • alternatives --install /usr/bin/java java /usr/j2se/jdk1.5.0_16/bin/java 2
    • alternatives --config (choose option 2)

Labels

centos centos Delete
java java Delete
jdk jdk Delete
linux linux Delete
redhat redhat Delete
gnu gnu Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.