Ubuntu18.04 installation JDK1.8.0_11

1. Download jdk-8u11-linux-x64.tar.gz

Copy the file to the compressed / home / geek / development / under, and extract: the tar -zxvf JDK-8u11-Linux-x64.tar.gz

Unzip

2. Go to the configuration file: vim / etc / Profile , type the following code in the last:

3. Make the configuration file to take effect:

4. Verify jdk whether the installation was successful:

 

Guess you like

Origin www.cnblogs.com/duanqibo/p/11202851.html