Install JDK1.8 original under Ubuntu Kylin

Install JDK1.8 under Ubuntu Kylin, the reference address is: http://jingyan.baidu.com/article/647f0115bb26817f2048a871.html, in addition to referring to it, the steps are as follows:

Note: I placed jdk in the /opt/duan/ directory

The following steps 1~6 are all operated by ordinary users

1、 First download the JDK for linux, not to mention the specific download process.

2、 Unzip and copy the jdk to the /opt/duan directory: tar zxvf jdk1.8...-linux-64...tar.gz -C /opt/duan

3、 Switch the shell current directory to /opt/duan, modify the name of the jdk folder: mv jdk1.8.0_05 jdk1.8

4、 gedit /home/duan/.bashrc (note that duan is my username)

5、 Write the content shown in the figure below into the file:

6、5 After the steps, save the file, close the file, and then enter java -version in the shell to see the jdk version.

Note: Although the operation done in the above steps, although the JDK is installed, the jdk can only be seen by the user duan, as if other users cannot see it, even the root user does not seem to see the jdk (you can view it this way : Under the root user, enter java -version in the shell to see if there are any results).

Next, install the JDK under the root user:

1、 Switch to the root user.

2、 After executing gedit /etc/profile, write the content in the following figure to the file:

3、 Save the file after step 2 and close the file.

4、 Exit the root user (it seems to exit first, or enter java directly in the shell, it seems that you will be prompted to find the java command), then switch to the root user, execute java -veriosn in the shell, and you can see the jdk version Up.

( adsbygoogle = window.adsbygoogle || []).push({});

Recommended Posts

Install JDK1.8 original under Ubuntu Kylin
Install node.js under Ubuntu
Install mysql under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
2018-09-11 Install arduino under Ubuntu
Install JDK10+ on Ubuntu
Install JDK in Ubuntu19.10
Install ROS under ROS Ubuntu 18.04[2]
Install MySQL under Ubuntu
Install Yarm-PM2 under Ubuntu
ubuntu14.04 install jdk1.8 tutorial
Install Java JDK8 under CentOS6
Install server-side Shadowsocks under Ubuntu 16.04
Install rgl package under Ubuntu
Small tool: install screenshot tool under ubuntu
Install nodejs and npm under Ubuntu 16.04
How to install Audacious under Ubuntu
How to install Tensorflow under ubuntu 16.04
Compile and install QEMU under Ubuntu
Install YouCompleteMe plugin for vim under Ubuntu
Install Sogou input method on Ubuntu Kylin 14.04
Install PyTesser under ubuntu 14.04 for OCR recognition
Install Ubuntu with Parallels Desktop under Mac
Three ways to install software under Ubuntu
Three ways to install JDK under CentOS
Install utility software collection under Ubuntu system
ubuntu18.04 install python2
ubuntu12.04 install python3
Ubuntu install guide
ubuntu install nodejs
ubuntu 16 install asp.net
ubuntu install leanote
ubuntu install Jenkins
docker install ubuntu
ubuntu install elasticsearch
CentOS install jdk
ubuntu16.0.1 install pagoda
ubuntu18.04 install python
ubuntu 18.04 install teamviewer
ubuntu install sendmail
How to install vim editor under Linux (Ubuntu 18.04)
Install JDK and configure environment variables on Ubuntu 16.04
How to install gcc compiler faster under Ubuntu
install vscode on ubuntu18
Centos7 install docker-18.x original
Install mysql-pytho in Ubuntu
ubuntu install zsh terminal
Install Redis on Ubuntu
Install R4 on ubuntu20
Install nvtop on Ubuntu 18.04
Install postgresql-10 on Ubuntu 18.04
Install docker on Ubuntu
Install mysql5.7 under CentOS7
Install win7 and archlinux on hard disk under ubuntu
Ubuntu18.04 install opencv 3.2.0 solution
Install nvidia graphics driver under Ubuntu (easy installation method)
Install ActiveMQ under Centos7
Python MySQLd under Ubuntu
Install Docker on ubuntu18.04