Search This Blog

Saturday, 16 August 2014

Install Oracle Java JDK on Ubuntu 14.04

  1. Download the JDK from Oracle.
  2. Extract the file to /user/lib/jvm.
  3. Change the owner to root:
    chown -R root:root jdk1.8.0_11*
  4. Install java, javac, etc..:
    update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_11/bin/java 1065
  5. Setting the system's java version:
    update-alternatives --cofig java
  6. Testing the java installation:
    java -version

No comments:

Post a Comment