Ubuntu 一键安装sun java 6 JDK6 / Oracle java 7 JDK7

原文参考: https://github.com/flexiondotorg/oab-java6

Sun Java 6 (JDK 6):

cd ~/ && wget https://github.com/flexiondotorg/oab-java6/raw/0.2.7/oab-java.sh -O oab-java.sh && chmod +x oab-java.sh && sudo ./oab-java.sh

Oracle Java 7 (JDK 7):
cd ~/ && wget https://github.com/flexiondotorg/oab-java6/raw/0.2.7/oab-java.sh -O oab-java.sh && chmod +x oab-java.sh && sudo ./oab-java.sh -7 -c