Wirabumi Software

The home for Openbravo ERP, Openbravo POS, Pentaho BI, and Activiti BPM resources.

  • Increase font size
  • Default font size
  • Decrease font size

Install Openbravo ERP 2.50 in Windows

E-mail Print PDF

This article we will discuss how to install Openbravo in Windows. Since Openbravo version 2:50 MP5, openbravo.com doesn't release the installer version. Therefore, the installation must be done from 2:50 Openbravo source code. Here is my note during Openbravo installation in Windows XP or in Linux (Linux Mint 9 Isadora, derived from Ubuntu 10.4) which diisntaled from source.

 

Seting Up Openbravo Environment

What things should be done before installing Openbravo ERP? Setting up environment! Without setting up the necessary environment, openbravo can not be installed. The process of preparing this environment will vary based on operating system. I am using Windows XP as the operating system.

Befor set the environment you need to install bellow:

Beside that, its better that you use Firefox as your default browser when running Openbravo ERP. Based on my experience, Firefox have highest compatibility with Openbravo ERP.

Install Java Development Kit (JDK)

Java Development Kit (next we will call it JDK) is required when compiling the source code of Openbravo. In the JDK installer also have the Java Runtime Environment (next we will call it JRE) required by web server (Apache Tomcat). The installation process is very easy, simply follow the installation instructions that appear on your JDK installer wizard. It is important that you must tell windows where you install the JDK. Its done by create new variables and edit user environment variable named path on your windows. Follow steps bellow to create user variables and edit the necessary environment variables:

  1. Right click on my computer, select properties, select tab advance. Click button environment variable.

  2. On the listbox user variable, click new. Enter Variable Name with JAVA_HOME and Variable Value with JDK installation folder (i.e: C:Program FilesJavajdk1.6.0_13), click OK.

  3. POn the listbox system variable, click Path variable. Click Edit, append binary folder of your JDK (i.e C:Program FilesJavajdk1.6.0_13bin).

To test your JDK run the command bellow to print the java compiler version:

javac -version

Picture bellow will show you the properly installed JDK.

Install ANT

Apache ANT is used when compiling the source code of Openbravo. ANT Installation is easy, simply place the ant folder (inside the ant forlder must have a sub folder bin, etc, and lib) to the location that you want, for example C: ant . Then you have to tell windows where you put the ANT by adding user variables and edit the system variable named path. The steps are similar to steps used when installing the JDK, only the variable name and its value are different. Follow steps bellow to create user variables and edit the necessary environment variables:

  1. Right click on your my computer (can be from the start menu, can be from the desktop), select properties, select advanced tab. Click the environment variables on the left bottom of the window pop-up System Properties which has just appeared.

  2. In the listbox of user variables, click new. Enter the Variable Name and Variable Value ANT_HOME to the directory where you installed your JDK (eg: C: ant), save it by clicking the OK button.

  3. In the listbox of user variable, click new. Enter the Variable Name with ANT_OPTS and its Value with -Djava.awt.headless=true -Xms384m -Xmx 512m -XX:PermSize=128m -XX:MaxPermSize=256m
  4. In the listbox system variable, click the variable named Path. Click the Edit button, at the end of the variable value and add a comma followed by the binary directory where you installed your JDK (misalanya C: ant bin )

To test whether you've teri ANT-install properly, test the print version of ant you with the following command via command prompt:

 ant -version ant-version 

The following figure shows the ANT that has been installed properly.

Installing PostgreSQL

PostgreSQL is a database server that will be used to store data Openbravo. The installation process is very easy, simply follow the installation instructions that appear on your PostgreSQL installer wizard. That need attention are:

  1. Do not change the default port that had been established (5432), if you change this port, you must remember / record it, because Openbravo configuration file using the standard ports.

  2. Keep in mind all the users and passwords that you entered (user service account and user postgresql).

  3. Install PostgreSQL as a windows service.

Then you have to tell windows where you put PostgreSQL by editing the system variable named path. The steps used are similar to steps used when installing the JDK, only the variable name and its value are different. Follow these steps to edit the necessary environment variables:

  1. Right click on your my computer (can be from the start menu, can be from the desktop), select properties, select advanced tab. Click the environment variables on the left bottom of the window pop-up System Properties which has just emerged.

  2. In the listbox system variable, click the variable named Path. Click the Edit button, at the end of the variable value and add a comma followed by the binary directory where you install your PostgreSQL (misalanya C: Program Files PostgreSQL 8.3 bin )

To test whether you've teri PostgreSQL is installed properly, test by logging to PostgresSQL via the command prompt with the following command:

 psql -U <nama user yang anda buat> psql-U user you name> buat> 

Then enter the password, if PostgreSQL is installed properly, then you will enter into the Command Line PostgreSQL. The following figure shows the ANT that has been installed properly.

Installing Apache Tomcat

Apache Tomcat is an application server where Openbravo will be hosted. The installation process is very easy, simply follow the installation instructions that appear on your Apache Tomcat installer wizard. That need attention are:

  1. Do not change the default port that had been established (8080), if you change this port, you must remember / record it, because Openbravo configuration file using the standard ports.

  2. Keep in mind all user and password that you entered (the admin user tomcat)

  3. Install Apache Tomcat as a windows service

Then you have to tell windows where you put the Apache Tomcat by adding a new user variable and edit system variable named path. The steps used are similar to steps used when installing the JDK, only the variable name and its value are different. Follow these steps to add users variables required to edit environment variables:

  1. Right click on your my computer (can be from the start menu, can be from the desktop), select properties, select advanced tab. Click the environment variables on the left bottom of the window pop-up System Properties which has just emerged.

  2. In the listbox the user variables, click new. Enter the Variable Name and Variable Value CATALINA_HOME to the directory where you install Tomcat you (eg: C: Program Files Apache Software Foundation Tomcat), save it by clicking the OK button.

  3. In the listbox the user variables, click new. Enter the Variable Name and Variable Value CATALINA_OPTS with -Djava.awt.headless=true -Xms384m -Xmx 512m -XX:PermSize=128m -XX:MaxPermSize=256m, save it by clicking the OK button. Note, the value is actually a parameter CATALINA_OPTS Java, where the XMS is the large initial size theart java, Xmx is the maximum size threatjava, while XX: MaxPermSize is the maximum size of Permanent Generated Heap Space. Last two parameters can be filled in accordance with the size of your RAM.

  4. Enter the parameter value java on Tomcat. Right-click the Tomcat icon in the system tray windows in the lower right corner, select the Java tab, in the text box enter the parameters in accordance with option No. 3, but a parameter is written in a row, so that you write is (1 line each, so total there are 4 lines):

    1. -Djava.awt.headless=true

    2. -Xms384m

    3. -Xmx512m

    4. -XX:PermSize=128m

    5. -XX:MaxPermSize=256m

    6. Intial memory pool 32

    7. Maximum memory pool 1024

    8. Thread stack size 256

  1. In the listbox system variable, click the variable named Path. Click the Edit button, at the end of the variable value and add a comma followed by the binary directory where you install your PostgreSQL (misalanya C: Program Files Apache Software Foundation Tomcat bin )

To test whether you've teri Apache Tomcat is installed properly, test by logging in to the index page the web server by entering http://localhost:8080 in the address bar of your web browser.

The following figure shows the index page that shows the web server Apache Tomcat has been installed properly.

Congratulations! You have successfully set up Openbravo ERP environment before installation begins. Next, there can run the installation process Openabravo ERP.


Openbravo installation

To install Openbravo 2:50 from source, you must have a source Openbravo 2:50, which can be downloaded here . Follow these steps to run the installation process Openbravo 2:50:

Openbravo Source Extracts

Extract the source that you have downloaded. Extract in place that you want. This extraction location into your ERP Openbravo installation location, hereinafter referred to Openbravo_HOME.

Configuration of openbravo.properties

After you extract the source that you have downloaded, the next step is to configure the installation so that it meets your needs. All you have to do is change the file contents openbravo.properties. This file is a plain text file so it can be edited with your favorite text editor. You also can edit these files with a installation wizard. This tool can be downloaded here . If the download is complete, copy the file to the folder Openbravo_HOME / config. Run (double click) this file in a folder that was specified earlier. Here are the data that you need to fill using these graphical tools:

  1. Date time option : date and time format.

  2. Stack configuration:

    1. attachment directory: select the folder where attachments are stored. This attachment, for example, to store print out of invoices, photos, PDF documents, etc..
    2. context name: The name of the application that used by Tomcat, leave the default.
    3. web url: Openbravo web address on Tomcat, leave the default.
    4. context url: Openbravo parent web address, leave the default.
  3. development parameter : used if you want to develop Openbravo, leave the default.

  4. Server database : select PostgreSQL.

  5. PostgreSQL Parameters:

    1. DB name: Openbravo database name
    2. admin role: name of super user in the PostgreSQL database server
    3. admin role password: password as super user in the PostgreSQL database server used
    4. DB role: user on PostgreSQL server that will access the database of the Openbravo
    5. DB role password: password as a user of PostgreSQL server that will access the database of the Openbravo
    6. DB server address: the server address
    7. DB server port: port of PostgreSQL database servers
  6. Tomcat configuration:

    1. tomcat manager url: Tomcat manager application address
    2. tomcat admin username: user name of tomcat manager
    3. tomcat admin password: password for the user Tomcat Manager
  7. Pentaho server : currently not integrated yet with Pentaho, so this left the default / empty.

End the configuration process with the click forward.

Compile Source

Openbravo ERP is ready to be compiled. Open a command prompt window, go into the folder you install Openbravo ERP.

Compile source to run the following command

 ant install.source ant install.source 

Please wait, this process is rather long.

If it is successful, run your tomcat. Wait a minute, because tomcat on windows, though it was start the service, not all context was loaded, wait approximately 1 minute. Then sign in using a web browser (internet explorer, mozilla firefox, etc.) with address http://localhost:8080/openbravo . You will see a login page, login with user / password from the default installation of Openbravo ERP: username: Openbravo, password: Openbravo . Remember, in Openbravo ERP username and password are case sensitive (distinguish upper / lower case).

Congratulations! You have successfully installed Openbravo ERP 2:50.

 

Last Updated on Tuesday, 26 February 2013 09:30  

Add comment


Security code
Refresh

Contact Us

Zaien Aji Trahutomo
zaien@wirabumisoftware.com
+ 62 89 777 20002

Our Certification

Openbravo Certified Partner | Wirabumi Openbravo Indonesia

PostgreSQL associate certified professional | Wirabumi Openbravo Indonesia

Login