Teach you how to install Oracle Java 13 in Ubuntu
Oracle Java 13 was released a few weeks ago. Here is how to easily install it on Ubuntu 14.04, Linux Mint 18.x and later versions.
To see the new features and enhancements in Java 13, see the bulletin.
'Linux Uprising' team makes an installation script that automatically downloads and installs Oracle JDK 13 and sets Java 13 as the default Java version (set JAVA_HOME, etc.).
1.) use Ctrl + Alt + T keyboard shortcuts or search for "Terminal" from the application menu to open the terminal. When on, run the command to add PPA:
Linuxidc@linuxidc:~/www.linuxidc.com$ sudo add-apt-repository ppa:linuxuprising/java
Enter the login password prompted by sudo and press Enter to continue.
2.) then check for updates and install the script with 2 commands:
Linuxidc@linuxidc:~/www.linuxidc.com$ sudo apt-get updatelinuxidc@linuxidc:~/www.linuxidc.com$ sudo apt-get install oracle-java13-installer
This command automatically downloads the Java 13 source package, installs it on 64-bit Ubuntu, and sets it as the default.
Check the results through the command: java-- version
(optional) you can delete the PPA repository through the Software and updates utility under the other Software tab.
And delete Java 13 with the command:
Sudo apt-get remove oracle-java13-installer
Original address: https://www.linuxprobe.com/ubuntu-oracle-java-13.html