Updating java on ubuntu
Consider this release the default recommended version.
Right now, this is 16.04, but it will change to 18.04 in a few weeks once the ‘point’ release (i.e. This follows the guideline used by the ‘do-release-upgrade’ tool which will recommend upgrading from one LTS to the next after the first ‘point’ release is available.
to set Oracle's Java SE Development Kit as the system default Java just download the latest Java SE Development Kit from here then create a directory somewhere you like in your file system for example There are 2 choices for the alternative java (providing /usr/bin/java).
So, once you install Ubuntu, that will be your working version unless you manually complete the upgrade steps.First, we need to download a sample WAR file on domain1’s document root directory: Of course, you don’t have to install Glass Fish on Ubuntu 18.04 if you have use one of our Glass Fish Hosting plans.If you do, you can simply ask our support team to install Glass Fish on Ubuntu 18.04 for you.It also provides both web and CLI-based administration consoles for easier configuration and management of your Java applications and their respective components.Glass Fish is being maintained and developed through the Glass Fish Project.