Linux?°??JDK?????????????
???????????? ???????[ 2016/4/19 10:58:01 ] ?????????????? ????????
????1. ?????????????JDK
????[root@localhost bin]# java -version
????java version "1.6.0_22"
????OpenJDK Runtime Environment (IcedTea6 1.10.4) (rhel-1.41.1.10.4.el6-x86_64)
????OpenJDK 64-Bit Server VM (build 20.0-b11?? mixed mode)
????2. ???????????OpenJdk
????[root@localhost bin]# rpm -qa | grep jdk
????java-1.6.0-openjdk-javadoc-1.6.0.0-1.41.1.10.4.el6.x86_64
????java-1.6.0-openjdk-1.6.0.0-1.41.1.10.4.el6.x86_64
????java-1.6.0-openjdk-devel-1.6.0.0-1.41.1.10.4.el6.x86_64
????[root@localhost bin]# rpm -e --nodeps java-1.6.0-openjdk-javadoc-1.6.0.0-1.41.1.10.4.el6.x86_64
????[root@localhost bin]# rpm -e --nodeps java-1.6.0-openjdk-1.6.0.0-1.41.1.10.4.el6.x86_64
????[root@localhost bin]# rpm -e --nodeps java-1.6.0-openjdk-devel-1.6.0.0-1.41.1.10.4.el6.x86_64
????[root@localhost bin]# rpm -qa | grep jdk
????[root@localhost bin]#
????3. Oracle????????
??????????????
????jdk1.6.0_45-linux-x64.tar.gz
????4. ???JDK
????[root@localhost soft]# tar -zxvf jdk1.6.0_45-linux-x64.tar.gz
????[root@localhost ~]# mkdir /usr/java
????[root@localhost ~]# mv jdk1.6.0_45/ /usr/java/jdk1.6.0_45
????5. ????JDK????????
????????/etc/profile????????β?????????????
????JAVA_HOME=/usr/java/jdk1.6.0_45
????CLASSPATH=.:$JAVA_HOME/lib.tools.jar
????PATH=$JAVA_HOME/bin:$PATH
????export JAVA_HOME CLASSPATH PATH
????????????????.bash_profile???????crxj-app???????? vi /home/crxj-app/.bash_profile???????????????
????JAVA_HOME=/usr/java/jdk1.6.0_45
????JAVA_BIN=/usr/java/jdk1.6.0_45/bin
????CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib:$JAVA_HOME/bin
????export JAVA_HOME JAVA_BIN CLASSPATH
????export PATH=$PATH:$JAVA_HOME/bin
??????Ч???????
????[crxj-app@CRXJ-APP-2 uap]$ source /etc/profile
????????JDK????
????#??????????????????JDK???????????
????java -version
????javac -version
????echo $JAVA_HOME
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11