Java is an essential complement to the execution or operation of many tools in the system and shortly after having been released the new version of Ubuntu which is version 17.04 Zesty Zapus, you need to start installing the essential packages for our system.

Currently the recommended version of Java is the 8 in its update 131 , with which we are going to focus. The installation of Java in Ubuntu 17.04 , is relatively simple, we can do it from PPA or compiling directly.

First we will begin with the installation in the simplest way that is using the packages that Ubuntu offers us directly, although a bit outdated, since Ubuntu does not update them in time and form when a new version comes up.

How to install JDE on Ubuntu 17.04 Zesty Zapus

The first thing is to open a terminal and execute the following commands:

And with that, we have the java runtime environment in our system.

How to install JDK on Ubuntu 17.04 Zesty Zapus

In the same way we will open a terminal and execute the following commands:

How to install Oracle JDK on Ubuntu 17.04 Zesty Zapus

There is another way that webupd8team offers us which is the package Oracle offers us directly and we can obtain it by adding the PUP from webupd8team to our sources.list

If you have already added the PPA, it is not necessary to add it again, we would only be duplicating and possibly creating a conflict. For those who have doubts can verify it with the following command:

If you don’t have the webupd8team PPA, proceed by running the following commands:

How to Customize the Java installation on Ubuntu 17.04 Zesty Zapus

Java allows us to have different versions installed on the system, with which we can choose on which version to work without the need to reinstall a previous version without removing a previous one.

Through the use of update-alternatives , we can make such configuration that allow us to manage symbolic links that will use for different commands.

We will deploy the different versions of Java that we have installed:

With which it allows us to choose with which number (java version) to work.



(Signature tool)

How To Define the JAVA_HOME environment variable[/code]

JAVA_HOME is a variable to determine the location of the Java installation, which many programs use by default, so, to establish this variable it is necessary that we know where we have installed java.

With the following command we can know:

Having this data is necessary to add it to the end of this file, we do it with the following command:

Taking into account that we will replace what is in quotation marks by the route that we previously found out.

Save with ctrl + O and exit with ctrl + X. Finally check with:

And ready we will have the environment path configured.

In conclusion, java offers us an infinite number of options and customization to work. Although most of the steps described here apply few it is never too much to have a little extra information when necessary and more when you start working on the java IDE.

HowTo Install and configure Java in Ubuntu 17.04 Zesty Zapus
Tagged on: