JDK Download: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
[[EMAIL PROTECTED] /]# MKDIR /USR/LOCAL/TOOLS[[EMAIL PROTECTED] /]# CD /usr/local/tools/[[email protected] tools]# tar xf jdk-8u131-linux-x64.tar.gz [[email protected] tools]# lsjdk1.8.0_131 jdk-8u131-linux-x64.tar.gz[[email protected] tools]# mv jdk1.8.0_131/ /usr/local/[[email protected] tools]# vim /etc/profile.d/jdk.sh[[email protected] tools]# cat /etc/profile.d/ Jdk.shexport java_home=/usr/local/jdk1.8.0_131export path= $JAVA _home/bin: $PATH: $JAVA _home/jre/ Binexport classpath= $JAVA _home/lib: $JAVA _home/jre/lib[[email protected] tools]# source /etc/profile.d/jdk.sh [[email protected] tools]# java -versionjava version "1.8.0_131" Java (TM) SE Runtime Environment (BUILD 1.8.0_131-B11) java HotSpot (TM) 64-bit server vm (Build 25.131-b11, mixed mode)
This article is from the "Ten Miles Breeze" blog, please be sure to keep this source http://visitor.blog.51cto.com/11247238/1956799
Java Environment Deployment