![]() |
Page History
...
Info | ||
---|---|---|
| ||
As you install each application, record the installation directory path, and the hostname of your MySQL DB server, and the DB admin username/password, if you are going to install UPT. |
Java SDK Installation
When you install the Java SDK, you will be prompted to select the installation directory. Record the path, as this directory will be used when you set the environment variables.
Apache Ant Installation
- Unzip the Apache Ant distribution files using a command line unzip tool or a zip utility, such as WinZip.
- After extracting the zip, you must set the environment variables, described in the following section, so that Ant is available in the system PATH.
Apache Ant Environment Variables
Info | ||
---|---|---|
| ||
The purpose of setting operating system environment variables is so that the Java SDK and Ant build tool are available to run from anywhere in the system. |
Linux
Info | ||
---|---|---|
| ||
The |
To set the environmental variables in Linux, follow these steps:
- As the root user, enter the following in the
/etc/profile
file. A PATH variable should already be created in this file, so be sure to define the JAVA_HOME and ANT_HOME export before the PATH export. Replace<some_path>
with the correct path fragment for Java and Ant installations.
export JAVA_HOME=<some_path>/jdk1.6.0_31
export ANT_HOME=<some_path>/apache-ant-1.8.2
;
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
- Log out and log back in so that the system recognizes your changes.
Verifying the Environment Variables in Linux
To verify that environment variables have been set correctly, follow these steps:
- From the command line, enter:
echo $JAVA_HOME
echo $ANT_HOME
Both of these commands should return the location where you installed these tools. - To verify your Java SDK installation, enter
java --version
from a command prompt. You should seejava version "1.6.0_31"
. - To verify your Ant installation, enter:
ant --version
from a command prompt. You should see:Apache Ant version 1.8.2
Windows
To set the environmental variables in Windows, follow these steps:
Info | ||
---|---|---|
| ||
The |
- In Windows, select Control Panel, then select the System application. In the System Properties window, select the Advanced tab.
- On the Advanced tab, click the Environment Variables button. To add a new system variable, select the New button.
- In the Variable n ame text box, enter
JAVA_HOME
. - In the Variable v alue text box, enter the location of your Java installation.
- In the Variable n ame text box, enter
- Click the New button again.
- In the Variable name text box, enter
ANT_HOME
. - In the Variable value text box, enter the location of your Ant installation.
- In the Variable name text box, enter
- Select the
PATH
system environment variable, and select the Edit button. This opens the Edit System Variable dialog box. - In the Variable value text box, prepend the following text in front of the text that already exists in the Variable Value field.
%JAVA_HOME%\bin;%ANT_HOME%\bin;
- Click OK.
Verifying the Environment Variables in Windows
To verify the environment variables have been set correctly, follow these steps:
- From the command line, enter:
echo %JAVA_HOME%
*
echo %ANT_HOME%
*
Both of these commands should return the location where you installed these tools. - To verify your Java SDK installation, enter
java --version
from a command prompt. You should seejava version "1.6.0_31"
. To verify your Ant installation, enter
ant --version
Info title Other environment variables Environment variables for caIntegrator and, optionally, UPT are modified and set in those sections of this document: 2 - caIntegrator 1.4 Software and Technology Requirements and 2 - caIntegrator 1.4 Software and Technology Requirements.