Adding JAVA JDK to Ubuntu in simple steps

Download the latest JDK from http://www.java.com Add the following lines to the /etc/profile file, please note you need to update the path of the JDK folder JAVA_HOME=/usr/local/java/jdk1.8.0_92 JRE_HOME=$JAVA_HOME/jre LARAVEL_HOME=/root/.config/composer/vendor/bin PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$LARAVEL_HOME export JAVA_HOME export JRE_HOME export LARAVEL_HOME export PATH Now inform the