首页 > 代码库 > 1025: JAVA详细写:

1025: JAVA详细写:

http://hermosa-young.iteye.com/blog/1798026

 JAVA的安装过程:

下载JAVA SE:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
mkdir /usr/java  

d:

pscp d:\jdk-8u25-linux-x64.gz  root@192.168.224.129:/usr/java

把文件传进去

cd /usr/javatar -xzvf jdk-8u25-linux-x64.gz  

mv jdk某某某 jdk   

vim /etc/profile

export JAVA_HOME=/usr/java/jdk
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

source /etc/profile

java --version 

 

1025: JAVA详细写: