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