Skip to content

Instantly share code, notes, and snippets.

View wangjin's full-sized avatar
🏆
Focusing

Wan9J1n wangjin

🏆
Focusing
View GitHub Profile
@wangjin
wangjin / get_oracle_jdk_linux_x64.sh
Created March 10, 2019 13:52 — forked from n0ts/get_oracle_jdk_x64.sh
Get latest Oracle JDK package bash shell script
#!/bin/bash
# You must accept the Oracle Binary Code License
# http://www.oracle.com/technetwork/java/javase/terms/license/index.html
# usage: get_jdk.sh <jdk_version> <ext>
# jdk_version: 8(default) or 9
# ext: rpm or tar.gz
jdk_version=${1:-8}
ext=${2:-rpm}