Archive for April, 2002

aaa

Monday, April 8th, 2002

asdfasfd

Amazon Linux: wget Oracle Java JDK 8 on Linux or Amazon EC2

Monday, April 8th, 2002

Get the Java 8 rpm. See Java Download Page for later URL

Or using wget Java 8 u11 RPM like:

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.rpm

Source

# Install Java
sudo rpm -i jdk-8u11-linux-x64.rpm

# Check if the default java version is set to sun jdk
java -version

# If not then lets create one more alternative for Java for Sun JDK
sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_11/bin/java 20000

# Set the SUN JDK as the default java
sudo /usr/sbin/alternatives --config java

# Verify if change in SDK was done.
java -version

This came from source but a little modified with the wget cookie trick and new java version.