Contents
Install Oracle Java 8 / 9 in Ubuntu 16.04, Linux Mint 18
- Add the PPA. Open terminal (Ctrl+Alt+T) and run the command:
- Update and install the installer script: Run commands to update system package index and install Java installer script:
- Check the Java version. To check the Java version after installing the package, run command:
- Set Java environment variables.
How do I install Java on Ubuntu?
This is the OpenJDK package which is an open source implementation of Java.
- Step 1: Update Ubuntu. The first thing you should always do is update your system.
- Step 2: Install the default JDK. Run the following command: apt-get install default-jdk.
How do I install Java 10 on Ubuntu?
To install Java JDK10, follow the steps below:
- Step 1: Add A Third Party PPA to Ubuntu. The easiest way to install Oracle Java JDK 10 on Ubuntu is via a third party PPA… To add that PPA, run the commands below.
- Step 2: Download Oracle Java 10 Installer.
- Step 3: Configure Oracle JDK10 as Default.