«

»

Jan 17

Installing JAVA on Ubuntu 14.04

To run Alfresco on your Ubuntu server you will need Java. The installer will add this for you but you can install it yourself. This ensures you have the latest version.


 

based on this web page

I use a combination of FileZilla and PuTTY


Get the latest JDK from the Oracle website

here


Upload it to a directory on your server

eg /tmp/


Make a directory for your Java installation

mkdir /opt/java


Go to the tmp directory and untar the file

tar -zxf JDK_TAR_FILE -C /opt/jdk

Replace caps above with the name of the JDK file you have downloaded

You will then have a folder with the name of the JDK version, eg  jdk1.8.0_25


Set default JVM

update-alternatives –install /usr/bin/java java /opt/jdk/JDK_VERSION/bin/java 100

and

update-alternatives –install /usr/bin/javac javac /opt/jdk/JDK_VERSION/bin/javac 100

 


Verify:

update-alternatives –display java

and

update-alternatives –display javac