View source | Discuss this page | Page history | Printable version   




Java JDK requirements

Openbravo needs the full Java JDK (not just JRE) installed.

For the specific versions supported and the currently recommended version check the System Requirements.

In general you should never pick a version lower then the recommended ones, but are free to pick higher version if they are supported.

What is required for Openbravo is:

  1. Working Java JDK
  2. JAVA_HOME variable does point to java installation directory
  3. java binaries (i.e. java & javac) in system path (so runnable from a shell / command line without specifying a path)

Example Java install on Ubuntu 18.04 LTS

Install the headless variant of the JDK for a server installation.

sudo apt-get install openjdk-11-jdk-headless
Bulbgraph.png   While the package name is 'openjdk-11' as of writing this guide in October 2018 it does still contain OpenJDK 10. Ubuntu will replace that soon with OpenJDK 11 for long term support.

Add config file to specify JAVA_HOME

sudo su -  
echo 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64' > /etc/profile.d/

Example install Java SDK on Microsoft Windows

Bulbgraph.png   This section was written for an older version and is outdated. It is kept as a reference but should not be just used 'as written'
Bulbgraph.png   The path where Java is installed here will be used in several places later (Tomcat Service Manager config + JAVA_HOME variable).

If it should ever change (i.e. after a Java Update it is important to also change it in those other places.

  1. Download and install JDK 8.
  2. Add the JAVA_HOME environment variable:
    1. Right-click on My Computer.
    2. Select Properties. The System Properties window appears.
    3. Select the Advanced tab then click Environment Variables.
    4. Click New. The New System Variable box appears.
    5. In the Variable name field, type JAVA_HOME.
    6. In the Variable value field type the path of the JDK installation directory. This is usually C:\Program Files\Java\jdk1.8.0_<version>
    7. Select the PATH environment variable.
    8. In the Variable value field you type the following %JAVA_HOME%\bin. This will reuse the JAVA_HOME variable we just defined.

How to test the installation

To test that all steps above have been done correctly check all the following commands that they work and verify their output.

Open a Command Prompt (cmd.exe):

The next 2 commands should both work fine and show the version of java you have just installed.

  1. java -version
  2. javac -version

The next command should work and show the path in which you have installed Java.

  1. echo %JAVA_HOME%

If any of those previous steps did not work go back and fix it now. As it will otherwise lead to problem later on.

Retrieved from ""

This page has been accessed 62,727 times. This page was last modified on 19 October 2018, at 12:28. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.