Some time ago we told you about how to install Java August on Ubuntu, and now that Java 9 is in version early access, And within the community many users have wanted to know how to install, We will tell you how you can have the new version of Java in Ubuntu quickly.
Before we continue, let us make one thing clear: Do not install Java 9 unless you need it specifically, Since this is a version early access of a product that will see the light in 2016. To this day for sure it still has a few bugs and it is more than likely that it does not have the proper security patches, besides the removal of some options in the JDK9 could lead to problems when using certain Java applications.
The PPA we are going to offer you has been created by WebUpd8, and does not include any Oracle binaries because the company does not allow it in its license. For this reason, the PPA includes one installer that automatically downloads july september or what is the same, JDK9 and Java September version connector for browsers, and that sets it all up for you. The Java installer is considered an alpha version and is offered without any warranty, so if you use it it is at your own risk.
It is worth mentioning that the download will be a bit slow due to Oracle servers, no matter how fast the connection through which you download it.
In any case, to install Java September on Ubuntu using PPA we use the commands in a terminal:
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java9-installer
The next one will be configure environment variables automatically. To do this we use this command:
sudo apt-get install oracle-java9-set-default
Any previous version of the environment variables sand will be removed by the time we install the new version.
And so far our little guide to installing Java 9, we hope you find it useful and, once again, we recommend not using it unless strictly necessary given its nature as a version early access.