Install Ant and read the accompanying documentation.
The jagant script requires a full JDK installation. If you are running jagant from an EAServer client install, make sure you have installed the full JDK. By default, only the JRE files are installed.
Before running jagant, verify that:
The DJC_HOME environment variable is set.
A full JDK installation is present.
Jakarta Ant is installed on your system.
By default, jagant searches for Jakarta Ant in %DJC_HOME%\ant (Windows) or $DJC_HOME/ant (Solaris). To use a different Ant installation, set the ANT_HOME environment variable before running the jagant script to specify the Ant installation location.
If you are using jagant to compile
JSP files with the compilejsp command, modify the
CLASSPATH setting for the Ant scripts, adding the location of the xalan.jar and crimson.jar files
that are included with EAServer. For example, if you are using Windows,
edit the ant.bat file, and change the code
under the :runAnt
label to
read:
:runAnt set DJC_HOME=EAServer installation directory set LOCALCLASSPATH=%DJC_HOME%\java\classes\crimson.jar;%LOCALCLASSPATH% set LOCALCLASSPATH=%DJC_HOME%\java\classes\xalan.jar;%LOCALCLASSPATH% %_JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" %ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS% goto end
Or on UNIX, change the last line to read like these lines:
DJC_HOME=EAServer installation directory LOCALCLASSPATH=$DJC_HOME/java/classes/crimson.jar:$LOCALCLASSPATH LOCALCLASSPATH=$DJC_HOME/java/classes/xalan.jar:$LOCALCLASSPATH $JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main "$@"