View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

Installation/Custom/JDK

JDK

Contents

Java JDK

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)

Installing the Java SDK on Microsoft Windows

Bulbgraph.png   Java 8 is supported starting with the PR15Q3 release.

We recommend it being used for windows custom install and all following page assume it is used implicitly.

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.

Installing the Java SDK on RedHat

Bulbgraph.png   This part is community maintained only and may contain outdated information.
  1. Download JDK 1.6, put the file in /tmp/.
  2. Run the installer as root:
  3. su -
  4. sh /tmp/jdk-6uXY-linux-i586.bin
  5. mv /tmp/jdk1.6.0_XY/ /usr/local/sun-jdk
  6. Create the required environment variables:
  7. echo 'export JAVA_HOME=/usr/local/sun-jdk' > /etc/profile.d/sun-jdk.sh
  8. echo 'export PATH=$JAVA_HOME/bin/:$PATH' >> /etc/profile.d/sun-jdk.sh
  9. chmod +x /etc/profile.d/sun-jdk.sh
  10. Now log out and log in again as root:
  11. exit
  12. su -
  13. Verify that the JDK is working as expected:
    echo $JAVA_HOME
    /usr/local/sun-jdk
    java -version
    java version "1.6.0_18"
    Java(TM) SE Runtime Environment (build 1.6.0_18-b07)

Retrieved from "http://wiki.openbravo.com/wiki/Installation/Custom/JDK"

This page has been accessed 39,248 times. This page was last modified on 27 July 2015, at 13:19. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.