Ubuntu's apt-get series--install JDK8--method/tutorial

Original website: apt-get series of Ubuntu--install JDK8--method/tutorial_IT sharp knife unsheathed blog

Introduction

This article describes how to install JDK8 under Ubuntu.

Verify installation

You can use the following command to determine whether the system has ssh service installed:

Order

java -version

result

As shown above, it means that it has not been installed yet.

View supported JRE versions

apt-cache search --names-only jdk

result:

install openjdk

Here I install openjdk-8-jdk

It can be installed through apt, the command is as follows:

sudo apt-get install openjdk-8-jdk

Verify installation results

Order

java -version

result

As above, it means that the installation is successful, and you can run the java program happily.

Guess you like

Origin blog.csdn.net/feiying0canglang/article/details/128179285