Member since
06-07-2016
2
Posts
2
Kudos Received
0
Solutions
06-07-2016
05:53 PM
1 Kudo
i spent 5 hours to find the proper code for downloading the latest JDK which is 1.8_92 currently. Guys be aware that the oracle website needs you to accept the license and you have to put it in you command line. the following code is working perfectly. enjoy # sudo wget --no-cookie --no-check-certificate --header "Cookie:gpw_e24=http%sA2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u92-b14/jdk-8u92-linux-x64.tar.gz?AuthParam=1465316438_f262c7659515d89274633588ae8f73ca # mkdir /usr/java # mv jdk-8u92-linux-x64.tar.gz /usr.java/jdk-8u92-linux-x64.tar.gz # tar zxvf jdk-8u92-linux-x64.tar.gz # ln -s /usr/java/jdk1.8.0_92 /usr/java/default # export JAVA_HOME=/usr/java/default # export PATH=$JAVA_HOME/bin:$PATH
... View more