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)
Installing the 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.
Installing the Java SDK on RedHat
- Download JDK 1.6, put the file in /tmp/.
- Run the installer as root:
mv /tmp/jdk1.6.0_XY/ /usr/local/sun-jdk
- Create the required environment variables:
echo 'export JAVA_HOME=/usr/local/sun-jdk' > /etc/profile.d/sun-jdk.sh
echo 'export PATH=$JAVA_HOME/bin/:$PATH' >> /etc/profile.d/sun-jdk.sh
chmod +x /etc/profile.d/sun-jdk.sh
- Now log out and log in again as root:
- Verify that the JDK is working as expected:
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)