HanG321 Blog

JAVA_HOME of OpenJDK 1.7 on CentOS 7

當設定 Jenkins 時發現沒有JAVA_HOME, 正奇怪明明已經安裝了Open JDK 7. 原來未安裝devel packages.

yum install java-1.7.0-openjdk-devel -y

然後加上java.sh 到  /etc/profile.d

 

Maven:

link from https://maven.apache.org/download.cgi

 

Ant:

links from https://ant.apache.org/bindownload.cgi