首页 > 其他 > 详细

jdk更新至1.8

时间:2017-10-13 12:20:52      阅读:38      评论:0      收藏:0      [点我收藏+]

标签:jdk更新1.8

===========================================================================================

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

-----------------------------------------------------------------------------------

[root@localhost ~]# rpm -qa |grep jdk

java-1.7.0-openjdk-1.7.0.131-2.6.9.0.el6_8.x86_64

java-1.6.0-openjdk-1.6.0.41-1.13.13.1.el6_8.x86_64

[root@localhost ~]# rpm -qa | grep gcj

[root@localhost ~]# rpm -e --nodeps java-1.7.0-openjdk-1.7.0.131-2.6.9.0.el6_8.x86_64

[root@localhost ~]# yum remove java-1.6.0-openjdk-1.6.0.41-1.13.13.1.el6_8.x86_64

[root@localhost ~]# java -version 

-bash: java: command not found

[root@localhost ~]# tar xf jdk-8u144-linux-x64.gz -C /usr/local/

[root@localhost ~]# ls /usr/local/

bin  etc  games  include  jdk1.8.0_144  lib  lib64  libexec  sbin  share  src

[root@localhost ~]# vim /etc/profile.d/java.sh 

JAVA_HOME=/usr/local/jdk1.8.0_144

PATH=$PATH:$JAVA_HOME/bin

CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export JAVA_HOME

export PATH

export CLASSPATH

[root@localhost ~]# 

[root@localhost ~]# source /etc/profile.d/java.sh 

[root@localhost ~]# java -version 

java version "1.8.0_144"

Java(TM) SE Runtime Environment (build 1.8.0_144-b01)

Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

*******************************************************************************************

===========================================================================================

本文出自 “12478125” 博客,请务必保留此出处http://12488125.blog.51cto.com/12478125/1972003

jdk更新至1.8

标签:jdk更新1.8

原文:http://12488125.blog.51cto.com/12478125/1972003

(0)
(0)
   
举报
评论 一句话评论(0
0条  
登录后才能评论!
© 2014 bubuko.com 版权所有 鲁ICP备09046678号-4
打开技术之扣,分享程序人生!
             

鲁公网安备 37021202000002号