On Windows
set JAVA_HOME=%TIBCO_HOME%\tibcojre64\1.7.0
set CLASSPATH=%TIBCO_HOME%\tools\lib\antpackage.jar
set RUN_ANT="%JAVA_HOME%/bin/java" -XX:MaxPermSize=1024m -cp "%CLASSPATH%" org.apache.tools.ant.Main
set ANT_OPTS=-Xmx1024m -XX:MaxPermSize=1024m -Xms256
On UNIX/Linux
JAVA_HOME=$TIBCO_HOME/tibcojre64/1.7.0
CLASSPATH=$TIBCO_HOME/tools/lib/antpackage.jar
RUN_ANT="$JAVA_HOME/bin/java -XX:MaxPermSize=1024m -cp $CLASSPATH org.apache.tools.ant.Main"
ANT_OPTS="-Xmx1024m -XX:MaxPermSize=1024m -Xms256"
export JAVA_HOME RUN_ANT ANT_OPTS