Skip to content

Instantly share code, notes, and snippets.

Mohamed Taher Alrefaie mohataher

View GitHub Profile
mohataher /
Last active Aug 2, 2016 — forked from rtfpessoa/
[Guide] Install Sun Java 8 on Amazon 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;" ""

Install Sun Java 8

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

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

You can’t perform that action at this time.