Centos7 uninstall openJdk, and install JDK1.8

JDKopenJdk

Centos7 uninstall openJdk and install JDK1.8

  1. View jdk version
[ root@localhost ~]# java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment(build 1.8.0_131-b12)
OpenJDK 64-Bit Server VM(build 25.131-b12, mixed mode)
  1. Query installed packages
[ root@localhost ~]# rpm -qa|grep jdk
java-1.7.0-openjdk-1.7.0.141-2.6.10.5.el7.x86_64
copy-jdk-configs-2.2-3.el7.noarch
java-1.8.0-openjdk-headless-1.8.0.131-11.b12.el7.x86_64
java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64
java-1.7.0-openjdk-headless-1.7.0.141-2.6.10.5.el7.x86_64
  1. Delete openJDK version
[ root@localhost ~]# rpm -e --nodeps java-1.7.0-openjdk-1.7.0.141-2.6.10.5.el7.x86_64 java-1.8.0-openjdk-headless-1.8.0.131-11.b12.el7.x86_64 java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64 java-1.7.0-openjdk-headless-1.7.0.141-2.6.10.5.el7.x86_64
  1. Download the JDK1.8 installation package and install
[ root@localhost download]# rpm -ivh jdk-8u162-linux-x64.rpm 
preparing...                          ################################# [100%]
upgrading/installation...1:jdk1.8-2000:1.8.0_162-fcs        ################################# [100%]
Unpacking JAR files...
	tools.jar...
	plugin.jar...
	javaws.jar...
	deploy.jar...
	rt.jar...
	jsse.jar...
	charsets.jar...
	localedata.jar...
  1. View the JDK version after installation
[ root@localhost ~]# java -version
java version "1.8.0_162"Java(TM) SE Runtime Environment(build 1.8.0_162-b12)
Java HotSpot(TM)64-Bit Server VM(build 25.162-b12, mixed mode)
This article was authored by [bytebye](http://yehe.isd.com/column/support-plan/article-edit/6207935)

Articles on this site are original or translated on this site except for the reprint/source indicated. Please sign before reprinting

Recommended Posts

Centos7 uninstall openJdk, and install JDK1.8
CentOS7 uninstall OpenJDK, and then install Oracle JDK
Centos 7 install jdk and package service service
CentOS install jdk
Install centos7 and connect
Linux Centos7 install jdk1.8
CentOS7 install JDK8, tomcat8
Openjdk install on centos7
Centos 7 install JDK (Linux install jdk)
Use CentOS 7.5 to uninstall the built-in jdk and install your own JDK1.8
How to install jdk1.8.0_151 and mysql5.6.38 on centos7.2.1511
How to install and uninstall tomcat on centos
centos7 install python3 and ipython
Know Linux and install CentOS
CentOS 7 install JAVA environment (JDK 1.8)
CentOs7.3 compile and install Nginx 1.9.9
CentOS 7 install Mono and MonoDevelop
CentOS6.5 install Java 8 and Tomcat8
Centos compile and install Git
Centos6.5 install and configure mongodb
Tencent Cloud Centos install jdk8
CentOS7 install python3 and pip3
Install Java JDK8 under CentOS6
CentOS7 install OracleJDK and JRE
CentOS6.5 install Java 8 and Tomcat8
CentOS6 install and crack Jira 7
CentOS6.5 install Java 8 and Tomcat8
Centos7 compile and install ntp-4.2.8p11
CentOS 6.9 compile and install python
CentOS6 install and crack confluence
CentOS 6 compile and install python 3
5.1. CentOS@ install JDK1.8 graphic tutorial
Ubuntu16.04 install and uninstall VMware-Workstation 14
CentOS6 install and crack Jira 7
How to install jdk1.8 on centOS7
CentOS7 yum install and start mysql
Install JDK8 in rpm on CentOS7
CentOS Yum compile and install MySQL 5.6
Compile and install LAMP under Centos 5.2
CentOS 8 install Git and basic configuration
Minimal install JDK 1.8 tutorial in CentOS 7
Linux CentOS 7 install JDK detailed steps
CentOS 6.x compile and install Nginx
CentOS7 compile and install L(A|N)MP environment
CentOS7.3 install iptables and detailed use
CentOS quickly install Python3 and pip3
CentOS7 yum install and start mysql
CentOS 8 - install and configure NFS service
Centos7 and centos8 install mysql5.6 5.7 8.0 so simple
Install Python3 and ansible under CentOS8
Install and use docker under CentOS 6.8
1.5 Install Centos7
CentOS7 install and use SQL Server
CentOS Minimal install and configure TIPS
Install Python3 and Py under CentOS7
Install and configure FreeIPA in Centos7
Linux CentOS6 compile and install Pyt
virtualBox install centos, and build tomcat
Install Mono 3.2 and Jexus 5.4 under CentOS 6.3
Compile and install libmodbus library under CentOS7
CentOS7.5 source code compile and install mysql5.7.29