Install Oracle Java 7 on CentOS 6








  1. Download the latest Java 7 JDK from Oracle.
    • If your computer is intel 32 bit, download jdk-7uXX-linux-i586.rpm
    • If your computer is intel 64 bit, download jdk-7uXX-linux-x64.rpm
  2. Install the rpm:
    sudo yum install jdk-7u*.rpm
  3. Run the following script to update the java alternatives to use the ones from the newly installed JDK 7:
  4. Add
    export JAVA_HOME=/usr/java/latest
    to /etc/bashrc

See Also




No comments:

Post a Comment