天天看點

Openbravo開發-安裝篇(windows)Eclipse IDE

在openbravo根目錄運作

1)ant setup (配置環境)

2)ant install.source(安裝源代碼到資料庫)時間較長,不能有錯誤

3)Import into Eclipse IDE(導入項目到Eclipse)

Launch Eclipse.

After Eclipse has started go to Project menu and disable Build Automatically option there.

Now 4 projects need to be imported in the workspace (by menu File=>Import..., Existing Projects into Workspace). Here they are:

openbravo XXX\opensource\openbravo\erp\devel\main\

OpenbravoCore XXX\opensource\openbravo\erp\devel\main\src-core

OpenbravoTrl XXX\opensource\openbravo\erp\devel\main\src-trl

OpenbravoWAD XXX\opensource\openbravo\erp\devel\main\src-wad

Then open Servers view and create a new instance of Tomcat server:

Set :

in General Information

click on Open launch configuration

add the following line at the end of VM arguments

-Djava.awt.headless=true -Xms384M -Xmx512M -XX:MaxPermSize=256M

in Server options

check the Serve modules without publishing

in Timeouts

set start and stop timeouts to 120 seconds(必須設定逾時120,否則運作不了)

4)導入配置檔案

The next step is to set the standard preferences used in the development of Openbravo.

Download the preferences file:

For Openbravo 2.50: openbravo-eclipse-prefs.epf file.

Import workspace preferences clicking on File > Import, then select General > Preferences and click on Next button.

5)運作

Launch from Eclipse

Now start the Tomcat server by right-clicking on the server instance in the Servers view and choosing Start option in the popup menu. Wait until the server is started (can take up to 2 minutes) and visit http://localhost:8080/openbravo/ in your internet browser. If everything was configured and installed properly you will get to the Openbravo ERP log in page. Use these credentials to log in:

username - Openbravo

password - openbravo

繼續閱讀