Friday, December 30, 2016

Oracle JDK Installation

  • download the latest version from http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
  • mkdir /usr/lib/jvm
  • mv jdk1.8.0_74/ /usr/lib/jvm/
  • update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_74/bin/java" 1
  • update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_74/bin/javac" 1
  • update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.8.0_74/bin/javaws" 1
  • chmod a+x /usr/bin/java
  • chmod a+x /usr/bin/javac
  • chmod a+x /usr/bin/javaws
  • chown -R root:root /usr/lib/jvm/jdk1.8.0_74
  • update-alternatives --config java
  • update-alternatives --config javac
  • update-alternatives --config javaws

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.