How to install Oracle Java 12 on Ubuntu


Simply put, open a terminal window and enter following commands:
$ sudo add-apt-repository ppa:linuxuprising/java <enter>
$ sudo apt update <enter>
$ sudo apt install oracle-java12-installer <enter>

After the installation is complete, you can verify that the Java plugin has been installed by starting your Firefox web browser and typing about:plugins in the URL box.

Make Oracle 12 as the default Java Environment in Ubuntu, LinuxMint:

$ sudo apt install oracle-java12-set-default <enter>

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s