Skip to content

Instantly share code, notes, and snippets.

Add the PPA

 $ sudo add-apt-repository ppa:webupd8team/java

Update and install the installer script

$ sudo apt update
$ sudo apt install oracle-java8-installer

Set Java environment variables and Oracle JDK8 as default

import Foundation
import Alamofire
public class AuthorizationManager: Manager {
public typealias NetworkSuccessHandler = (AnyObject?) -> Void
public typealias NetworkFailureHandler = (NSHTTPURLResponse?, AnyObject?, NSError) -> Void
private typealias CachedTask = (NSHTTPURLResponse?, AnyObject?, NSError?) -> Void
private var cachedTasks = Array<CachedTask>()
:: Remove subsystem and data
lxrun /uninstall /full
:: Install subsystem
lxrun /install
@LordSuricato
LordSuricato / Oracle.sh
Created May 17, 2017 13:05
Install OracleSDK by PPA
#/bin/bash
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
exit 0