Skip to content

Instantly share code, notes, and snippets.

View omandryk's full-sized avatar

Oleksandr Mandryk omandryk

View GitHub Profile
package ca.uwo.csd.cs2212.USERNAME;
public class BankAccount {
private double balance;
public BankAccount(double balance) {
this.balance = balance;
}
@omandryk
omandryk / java-8-ami.md
Last active November 26, 2015 20:20 — forked from rtfpessoa/java-8-ami.md
[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;" "http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.rpm"

Install Sun Java 8

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

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