Axelor recommends using jdk1.7 + provided by Oracle.
This app allows you to install the proprietary Java version of Oracle official website in a simple way and keep it updated. It will install all the components. In a terminal, enter the following commands:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Then accept the Oracle license.
Once the installation is complete you can enter java -version to make sure everything is up to date.
$ java -version
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
If for any reason, the Java version used is not 1.7.0, you can try running the following command:
$ sudo update-java-alternatives -s java-7-oracle