How to install Java JDK 10 on Ubuntu 18.04 / Ubuntu 16.04




Java Tutorial for Beginners
Java Tutorial for Beginners

This Post shows How to install Java JDK 10 on Ubuntu 18.04. In order to install Oracle Java JDK 1o On Ubuntu 18.04.

Option 1: Installation Using PPA

To install JDK 10 on Ubuntu  Linux just open the terminal and run these commands

$ sudo add-apt-repository ppa:linuxuprising/java
$ sudo apt-get update
$ sudo apt-get install oracle-java10-installer

Setting up environment variables (make java 10 default)

sudo apt-get install oracle-java10-set-default

We can Verify our installation using following commands:

$ java --version
openjdk 10 2018-03-20
OpenJDK Runtime Environment 18.3 (build 10+46)
OpenJDK 64-Bit Server VM 18.3 (build 10+46, mixed mode)

and

$ javac --version
javac 10

The same procedure of How to install Java JDK 10 can be followed on Ubuntu 16.04, Linux Mint, Debian and other related Linux systems.

Video Instructions


Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com





2 Comments

  1. Whoever runs Codebind, you are a lifesaver! Just like how @transitreport:disqus said, StackExchange/AskUbuntu has given me nothing but dead ends and outdated remedies.

    You gave the best advice (and are the #1 result on DuckDuckGo), so I cannot thank you enough.

    But when I installed the JDK, it already pulled in the `oracle-java10-set-default` package as a dependency.

    But regardless, thank you a billion!

Leave a Reply

Your email address will not be published.


*