Java is a general purpose, object-oriented and high-level programming language developed by Sun Microsystems way back in 1995. Today Java is commonly used for developing and delivering content on the web apart from powering many popular applications. In this tutorial, we will explore how to install Java on Ubuntu 18.04.
Java是Sun Microsystems于1995年开发的一种通用的,面向对象的高级编程语言。如今,除了支持许多流行的应用程序外,Java还通常用于在Web上开发和交付内容。 在本教程中,我们将探讨如何在Ubuntu 18.04上安装Java。
Before we dive in details about installing Java in Ubuntu 18.04, let us quickly understand a few terminologies associated with Java.
在深入探讨在Ubuntu 18.04中安装Java的细节之前,让我们快速了解与Java相关的一些术语。
JRE: If you are not a programmer and intends to run Java based applications only then you need Java Runtime Environment.
JRE:如果你不是一个程序员,并打算运行基于Java的应用程序只,那么你需要的J ava [R不定时ênvironment。
JDK: Java Development Kit is needed if you want to do some sort of programming or develop applications using Java in addition to running Java applications. JDK contains few more tools and components than standalone JRE those are needed for developing Java applications.
JDK: 的J ava d才有发展k如果你想要做某种编程或开发除了正在运行的Java应用程序中使用的Java应用程序需要它。 与开发Java应用程序所需的独立JRE相比,JDK包含的工具和组件很少。
OpenJDK: OpenJDK is free and open-source implementation of the Java SE Platform Edition(7) and was first released in 2007.
OpenJDK: OpenJDK是Java SE Platform Edition(7)的免费开放源代码实现,于2007年首次发布。
OracleJDK: Oracle’s JDK is the official version of Java Development Kit from Oracle and is targeted more towards an enterprise audience due to its stability and commercial support. The long term support (LTS) releases of OracleJDK are planned in every three years.
OracleJDK: Oracle的JDK是Oracle Java开发工具包的正式版本,由于其稳定性和商业支持,它更面向企业用户。 OracleJDK的长期支持(LTS)版本计划每三年发布一次。
先决条件 (Prerequisites)
- You can open a SSH session in your Ubuntu 18.04 system using
root
or asudo
enabled user. 您可以使用root
或启用sudo
用户在Ubuntu 18.04系统中打开SSH会话。