Advertisement
thioshp

Install Java USing APT

Mar 2nd, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. Launch a terminal.
  2. Execute one of the following lines:
  3. sudo apt-get install oracle-java8-installer #for jdk 8
  4. sudo apt-get install oracle-java7-installer #for jdk 7
  5. It runs wget and downloads the tar file wget --continue --no-check-certificate -O jdk-8u74-linux-i586.tar.gz --header Cookie: oraclelicense=a http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-linux-i586.tar.gz
  6. From
  7. http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-linux-i586.tar.gz http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-linux-i586.tar.gz?AuthParam=1456945187_330799f5b37746da233ebb0427ffb4c1
  8. Then correctly installs and sets this JDK as system default JDK.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement