Oracle Java 13 was released a few weeks ago. Here’s how to easily install it in Ubuntu 14.04, Ubuntu 16.04, Ubuntu 18.04, Linux Mint 18.x, 19.x, and higher.
To check out new features and enhancements in Java 13, see the announcement.
The ‘Linux Uprising’ team has made an installer script that automatically downloads and installs Oracle JDK 13, and sets Java 13 as the default Java version (setting JAVA_HOME, etc.).
1.) Open terminal either via Ctrl+Alt+T keyboard shortcut or by searching for ‘terminal’ from application menu. When it opens, run commands to add the PPA:
sudo add-apt-repository ppa:linuxuprising/java
Type your login password (no asterisk feedback) for sudo prompt and hit Enter to continue.
2.) Then check updates and install the script via 2 commands:
sudo apt-get update sudo apt-get install oracle-java13-installer
The command will automatically downloads Java 13 source tarball, installs on 64-bit Ubuntu, and also sets it as default.
Check the result via command: java --version
(Optional) You can remove the PPA repository via Software & Updates utility under Other Software tab.
And remove Java 13 if you want via command:
sudo apt-get remove oracle-java13-installer
Thanks!
Hello,
Thanks for sharing such informative and helpful blog post and you are doing a good job so keep posting such amazing articles
thank you !
Pleas how to check Java installation location and how to set JAVA_HOME
Installing the
oracle-java13-set-default
will set JAVA_HOME. Check it out via command:And you may run command to list all available java versions and set default:
Hi Ji,
Thank you for this post. It helped me to install jdk 13.
# sudo apt-get install oracle-java13-installer
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package oracle-java13-installer
installer not working bro..
You have not done the update command on the linux terminal.
example: sudo apt-get update
next command
sudo apt-get install oracle-java13-installer
See https://www.linuxuprising.com/2019/09/install-oracle-java-13-on-ubuntu-linux.html
Thank you very much :D
Plz help me how to set path of java jdk
Finally a fast and simple way!!
And guess what, the only that really worked for me
Thank you a lot!!!