How to Install Oracle Java 11 on Ubuntu 18.04 LTS (Bionic) Written by Rahul, Updated on April 3, 20

本文系转载备份

请阅读点击下面链接阅读原文以获取更佳地阅读体验。谢谢。

How to Install Oracle Java 11 on Ubuntu 18.04 LTS (Bionic)

Written by Rahul, Updated on April 3, 2019

Java is a popular programming language for the system software development and web application. You need to install Java Development Kit (JDK) and Java Runtime Environment (JRE) for preparation of a Java development system. This tutorial will guide you to install Oracle Java 11 LTS version on Ubuntu 18.04 LTS Bionic system.

Step 1 – Prerequsities

Before beginning the installation run login shell as the sudo user and update the current packages installed.

sudo apt update
sudo apt upgrade 

Step 2 – Install Java 11 on Ubuntu 18.04

You need to add the following PPA to your Ubuntu system. This PPA contains a package oracle-java11-installer having the Java installation script.

sudo add-apt-repository ppa:linuxuprising/java

Then install Java 11 using the script provided in this packages. This script downloads the Java archive from the official site and configures on your system

sudo apt update
sudo apt install oracle-java11-installer

Also, install the following package to configure Java 11 as default Java version on your Ubuntu 18 system.

sudo apt install oracle-java11-set-default

Step 3 – Verify Java Version

Check the installed Java version on your system using the following command.

java -version

java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)

You have successfully installed Java 11 on Ubuntu 18.04 LTS system.

Happy coding!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值