Skip to content

Instantly share code, notes, and snippets.

View bitmapdata's full-sized avatar

ms.shim bitmapdata

View GitHub Profile
@bitmapdata
bitmapdata / install-java8-aws-ec2.md
Created November 29, 2016 06:42
How to install Java 8 on AWS Ec2 AMI

First verify the version of Java being used is not Sun Java 8 SDK

java -version

Get the Sun Java 8 SDK from Oracle

wget --no-cookies --header "Cookie: gpw_e24=xxx; oraclelicense=accept-securebackup-cookie;" "http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.rpm"

Install Sun Java 8

sudo rpm -i jdk-8u91-linux-x64.rpm

Check if the default java version is set to Sun Java 8 SDK