Detailed tutorial on installing JDK8 on Linux system (CentOS7 installation)

JDK installation

The system installation will not be introduced too much. You can find the installation steps from the Internet to install, but I recommend that you choose the desktop graphical format for installation when installing, which is convenient for some operations. At the same time, I choose the English mode during the installation process. During the installation process, it was found that using Oracle VM VirtualBox, a virtual machine tool, is more convenient than using VM tool development.

use tools

System: CentOS7_64 bit (recommended to use the minimum configuration command window)
Jdk:jdk1.8.0_191
Virtual machine: Oracle VM VirtualBox
Documentation tool: EditPlus
File transfer tool: FileZilla
Tools for connecting to Linux system: Xshell5 (recommended, but used with caution, fee-based software)
Sunflower remote connection operation tool

file path

Link: https://pan.baidu.com/s/1qu71DDVXvU3kBEg-cgBpKw

Extraction code: hn1u

  1. Upload jdk file (/develop/package)

  1. Uninstall jdk (the jdk version will come with centOS)

1 ) Query all java (using the minimal configuration command line, you can install it directly without querying java)

rpm -qa | grep java

2 ) Delete java other than three

rpm -e --nodeps java-1.7.0-openjdk-1.7.0.111-2.6.7.8.el7.x86_64
rpm -e --nodeps java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64
rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.102-4.b14.el7.x86_64
rpm -e --nodeps java-1.7.0-openjdk-headless-1.7.0.111-2.6.7.8.el7.x86_64

3 ) After deleting, use the command to query

rpm -qa | grep java

  1. Unzip jdk

tar -zxvf jdk-8u191-linux-x64.tar.gz -C ../

  1. Configure environment variables (using EditPlus)
turn on/etc/profile
Add the following code at the end
 
# java environment
export JAVA_HOME=/develop/jdk1.8.0_191
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
  1. Make the modified configuration effective

source /etc/profile

  1. Check whether the configuration is successful

java -version

javac

to sum up

The above is the detailed explanation of the Linux system (CentOS7 installation) installation tutorial introduced by the editor to you. I hope it will be helpful to you. If you have any questions, please leave me a message. The editor will reply to you in time. Thank you very much for your support to the ZaLou.Cn website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!

Recommended Posts

Detailed tutorial on installing JDK8 on Linux system (CentOS7 installation)
Detailed tutorial on installing MySQL 8 in CentOS 7
Linux CentOS 7 installation tutorial
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
Detailed tutorial of installing nginx on centos8 (graphic)
CentOS 8 installation of MariaDB detailed tutorial
CentOS6 minimal installation KVM detailed tutorial
Centos8 installation diagram (super detailed tutorial)
Detailed method of installing Kernel 5.x kernel version on CentOS 8 system
CentOS 7 system installation and configuration graphic tutorial
Detailed tutorial on installing python3.7 for ubuntu18
Linux kernel compilation and CentOS system installation
Graphical tutorial for installing JDK1.8 under CentOS7.4
Detailed tutorial for installing phpMyAdmin on Ubuntu 18.04
Installation and configuration of JDK in CentOS 7 system
Centos7 installation of PHP and Nginx tutorial detailed
MySQL 8.0 installation, deployment and configuration tutorial on CentOS 8
Linux system-Centos7 installation tutorial
Linux Centos7 install jdk1.8
Linux notes (1): CentOS-7 installation
Centos 7 install JDK (Linux install jdk)
Ubuntu and RHEL dual Linux operating system installation tutorial
Detailed installation steps of CentOS6.4 system in virtual machine
Glusterfs cluster installation on Centos7
Linux Centos7 install redis tutorial
Install MySQL 8.0.16 on Linux Centos
Graphical centos installation detailed process
Hyper-V + CentOS7 installation video tutorial
Install docker on Centos system
vmware install CentOS 7 detailed tutorial
5.1. CentOS@ install JDK1.8 graphic tutorial
Centos7.4 environment installation lamp-php7.0 tutorial
Docker EE installation on centos7
CentOS8 Linux 8.0.1905 installation process (illustration)
Linux centos system boot process
Detailed explanation of Spark installation and configuration tutorial under centOS7
How to install JDK and Mysql on Ubuntu 18.04 linux system
Centos8 minimal deployment and installation of OpenStack Ussuri detailed tutorial
How to install jdk1.8 on centOS7
Common Linux operations (based on centos7)
Virtual machine Linux Ubuntu installation tutorial
Install JDK8 in rpm on CentOS7
Centos iso image file installation tutorial
Centos7 installation of Dameng database tutorial
CentOS8.1 build Gitlab server detailed tutorial
CentOS8 install jdk8 / java8 tutorial (recommended)
Install MySQL on Linux CentOS7 (Windows)
​Install Oracle database on CentOS Linux
CentOS 7.X system installation and optimization
Build Nginx environment on Linux (CentOS)
001. Installation of enterprise-level CentOS7.6 operating system
[Switch] CentOS7 64-bit installation mysql tutorial
Install Jenkins on linux centos (non-docker way)
Tutorial diagram for installing zabbix2.4 under centos6.5
Centos 7 64-bit desktop version installation graphic tutorial
CentOS7 build FastDFS distributed file system (on)
Centos7.6 operating system installation and optimization record
Install mysql8.0.13 version under Linux CentOS7 system
Jenkins installation and deployment tutorial under CentOS 7
How to install offline JDK1.8 on centos7.0
Novice learning Linux (eight) ---- MySql installation (Centos7)