Openbravo开发-安装篇(windows)
环境准备。安装以下软件
1)PostgreSQL database
8.3.5 is the minimum required version
2)Sun JDK
Download and install JDK 1.6.
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:\Java\jdk1.6.0_<version>
Select the PATH environment variable.
In the Variable value field, type the path of the JDK installation directory's bin folder. This is usually C:\Java\jdk1.6.0_<version>\bin
3)Apache Tomcat
Download and install Apache Tomcat 6.0.
Add CATALINA_HOME, CATALINA_BASE and CATALINA_OPTS environment variables:
Right-click on My Computer.
Select Properties. The system properties window appears.
Select the Advanced tab.
Click Environment Variables.
Click New. The New User Variable box appears.
In the Variable name field, type CATALINA_HOME.
In the Variable value field, type the path of the Apache Tomcat installation directory. This is usually C:\Apache Software Foundation\Tomcat 6.0.
Click OK.
Click New. The New User Variable box appears.
In the Variable name field, type CATALINA_BASE.
In the Variable value field type the path of the Apache Tomcat installation directory.
Click OK
Click New. The New User Variable box appears.
In the Variable name field, type CATALINA_OPTS.
In the Variable value type -Xms384M -Xmx512M -XX:MaxPermSize=256M.
If you want to be able to install modules and update the core from the repository, we recommend setting the CATALINA_OPTS to -Xms384M -Xmx1024M -XX:MaxPermSize=256M
Select the PATH environment variable.
In the Variable value field, type the path of the Apache Tomcat installation's bin folder. This is usually C:\Apache Software Foundation\Tomcat 6.0\bin.
More information about managing environment variables in Microsoft's Help & Support site
Copy the C:\Java\jdk1.6.0_<version>\bin\lib\tools.jar file from your Sun JDK installation to C:\Apache Software Foundation\Tomcat 6.0\lib\
In order to avoid Tomcat from auto-reloading itself, comment the WatchedResource line in C:\Apache Software Foundation\Tomcat 6.0\conf\context.xml:
<!-- <WatchedResource>WEB-INF/web.xml</WatchedResource> -->
Configure a username and password for the Tomcat Manager, by replacing the C:\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml file with these contents, replacing password="admin" with your chosen password:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="admin" password="admin" roles="admin,manager"/>
</tomcat-users>
You can check that Tomcat is running by opening http://localhost:8080 in a web browser.
4)Apache Ant
Download and extract Apache Ant (old releases) onto your system (for instance, C:\Apache-Ant).
Add ANT_HOME environment variable:
Right-click on My Computer.
Select Properties. The System Properties window appears.
Select the Advanced tab.
Click on the Environment Variables button.
Click the New button.
In the Variable name field, type ANT_HOME.
In the Variable value field, type the path of the Ant directory. This is usually C:\Apache-Ant.
Click OK.
Select the PATH environment variable.
In the Variable value field, type the path of the Ant directory's bin folder. This is usually C:\Apache-Ant\bin.
Equally add the ANT_OPTS environment variable:
Click the New button.
In the Variable name