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:
- Working Java JDK
- JAVA_HOME variable does point to java installation directory
- 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
Add config file to specify JAVA_HOME
sudo su - echo 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64' > /etc/profile.d/base-variables.sh
Example install Java SDK on Microsoft Windows
- Download and install JDK 8.
- Add the JAVA_HOME environment variable:
- Right-click on My Computer.
- Select Properties. The System Properties window appears.
- Select the Advanced tab then click Environment Variables.
- Click New. The New System Variable box appears.
- In the Variable name field, type JAVA_HOME.
- In the Variable value field type the path of the JDK installation directory. This is usually C:\Program Files\Java\jdk1.8.0_<version>
- Select the PATH environment variable.
- 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.
The next command should work and show the path in which you have installed Java.
If any of those previous steps did not work go back and fix it now. As it will otherwise lead to problem later on.