Barra de espaço
Barra de espaço

This tutorial describes a detailed procedure showing how to perform the installation of Java on a computer running Ubuntu or Debian operating system 

YOUTUBE

In our channel you can view the video of this tutorial.



DATE & TIME

Follow the steps shown in the video tutorial below to configure the correct date & time on your system.

 


Install Java using the command below.

# apt-get install default-jre

 

Check in which directory the java package was installed via the following command.

# update-alternatives --config java

 

  1


Edit the environment file and insert at the end of the file a variable named JAVA_HOME with the path to the installation directory

# vi /etc/environment

JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64"

 

Logoff and login again.

 

Be sure that the variable was actually created with the command below.

# env | grep JAVA_HOME 

 

Use the command below to verify if java was installed correctely.

# java -version 

 

The Java is installed on your system successfully.

CONCLUSION

This tutorial showed the intallation of Java.