reference: ~~https://gist.github.com/P7h/9741922~~ https://gist.github.com/hgomez/4697585 https://gist.github.com/sdmcraft/2c5abbdeccf37e1642e5
curl -L -b "oraclelicense=a" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm -O
sudo yum install jdk-8u131-linux-x64.rpm -y
echo "export JAVA_HOME=/usr/java/jdk1.8.0_131/" >> ~/.bash_profile
echo "export JRE_HOME=//usr/java/jdk1.8.0_131/jre" >> ~/.bash_profile
echo "export PATH=$PATH:/usr/java/jdk1.8.0_131/bin:/usr/java/jdk1.8.0_131/jre/bin" >> ~/.bash_profile
echo "export JAVA_HOME=/usr/jdk64/jdk1.8.0_112" >> ~/.bash_profile
echo "export JRE_HOME=/usr/jdk64/jdk1.8.0_112/jre" >> ~/.bash_profile
echo "export PATH=$PATH:/usr/jdk64/jdk1.8.0_112/bin:/usr/jdk64/jdk1.8.0_112/jre/bin" >> ~/.bash_profile
Recommended Posts