Once the the software is installed, we go about setting up the following environment variables:
Environment Variable |
Description |
---|---|
Set this to point to JDK 1.5 installation root folder, for example | |
Set this to point to Tomcat installation root folder, for example | |
Set this to point to ANT installation root folder, for example | |
Set this to point to CXF installation root folder, for example | |
Set this to point to Maven installation root folder, for example. | |
Set this to point to the above respective ' |
The environment setup can also be automated using batch script. The script, under Windows environment, might look like the following:
@echo off rem --------------------------------------------------------------- rem CXF Environment Setup script rem --------------------------------------------------------------- set JAVA_HOME=C:\jdk1.5.0_12 set CATALINA_HOME=C:\Program Files\Tomcat 6.0 set ANT_HOME=C:\apache-ant-1.7.1 set CXF_HOME=C:\apache-cxf-2.2.3 set MAVEN_HOME= C:\apache-maven-2.2.1 set PATH=%PATH%;%JAVA_HOME%\bin;%CATALINA_HOME%\bin;%ANT_HOME%\bin;%CXF_HOME%\bin;%MAVEN_HOME%\bin rem ---------------------------------------------------------------
Alternatively, Windows users can make use of Control Panel to set up the environment variable. From Control Panel, select System Properties and select the Advanced tab. Under the Advanced tab, click on the Environment Variables button, and set the appropriate environment variable.
Once the environment is set up, refer to the relevant chapter on how to develop, build and run the source code.