install java

This commit is contained in:
蒋国宝 2016-04-17 15:27:22 +08:00
parent af7bfaf53a
commit cff4a2a95d
1 changed files with 11 additions and 0 deletions

11
shell/install-java.sh Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# unbuntu加入java源
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
# 安装java-7
sudo apt-get install oracle-java7-installer
# 安装java-8
sudo apt-get install oracle-java8-installer