Modify each environmental or system
variable.
Set the
PATH environment variable to
include the directory where you installed the Ant bin
directory:
- Find the PATH environment variable in
the list. If PATH is not listed, click on
New under the System variables
section.
- Type %ANT_HOME%\bin;%JAVA_HOME%\bin;
Important: If there are other variables listed, create
a new variable separated by a semicolon. Ensure there are no
spaces before or after the semicolon.
Set the
ANT_HOME environment variable
to the directory where you installed Ant:
- Click on New under the System
variables section.
- Type ANT_HOME in the variable name
field.
- Type C:\ant in the variable value
field.
Set the
ANT_OPTS environment variable
to the directory where you installed Ant:
- Click New under the System
variables section.
- Type ANT_OPTS in the variable name
field.
- Type -Xmx256M in the variable value
field.
Set the
JAVA_HOME environment variable
to the directory where you installed the J2SE SDK
application:
- Click on New under the System
variables section.
- Type JAVA_HOME in the variable name
field.
- Type C:\j2sdk1.5.0_14 in the variable
value field.
Set the
JHHOME environment variable to
the directory where you installed the JavaHelp
application:
- Click on New under the System
variables section.
- Type JHHOME in the variable name
field.
- Type C:\javahelp\jh2.0 in the
variable value field.
Create or append to the
CLASSPATH environment variable
for DITA-OT:
- Find the CLASSPATH environment variable
in the list. If CLASSPATH is not listed,
click New under the System
variables section.
- Type
C:\ditaot\lib;C:\ditaot\lib\dost.jar;C:\ditaot\lib\resolver.jar
Important: If there are other variables listed, create a
new variable separated from the others by a semicolon. Ensure there are no
spaces before or after the semicolon.
Create or append to the
CLASSPATH environment variable
for the Apache FOP application:
- Find the CLASSPATH environment variable
in the list. If CLASSPATH is not listed,
click New under the System
variables section.
- Type
C:\fop-0.95\build\fop.jar;C:\fop-0.95\lib\avalon-framework-4.2.0.jar;
C:\fop-0.95\lib\batik-all-1.7.jar;C:\fop-0.95\lib\commons-io-1.3.1.jar;
C:\fop-0.95\lib\commons-logging-1.0.4.jar;C:\fop-0.95\lib\serializer-2.7.0.jar;
C:\fop-0.95\lib\xalan-2.7.0.jar;C:\fop-0.95\lib\xercesImpl-2.7.1.jar;
C:\fop-0.95\lib\xml-apis-1.3.04.jar;C:\fop-0.95\lib\xml-apis-ext-1.3.04.jar;
C:\fop-0.95\lib\xmlgraphics-commons-1.3.1.jar
Important: If there are other variables listed, create a
new variable separated from the others by a semicolon. Ensure there are no
spaces before or after the semicolon.
(If you use SAXON) Create or append to environment variables for SAXON:
- Find the
CLASSPATH environment variable in the list. If
CLASSPATH is not listed, click on
New under the System variables
section.
- Type C:\saxon\saxon9.jar;C:\saxon\saxon9-dom.jar;C:\saxon\saxon9-dom4j.jar;C:\saxon\saxon9-jdom.jar;C:\saxon\saxon9-s9api.jar;C:\saxon\saxon9-sql.jar;C:\saxon\saxon9-xom.jar;C:\saxon\saxon9-xpath.jar;C:\saxon\saxon9-xqj.jar;
Important: If there are other variables listed, create a
new variable separated by a semicolon. Ensure there are no spaces
before or after the semicolon.
- Set up ANT_OPTS. For example:
set ANT_OPTS=%ANT_OPTS% -Djavax.xml.transform.TransformerFactory=com.icl.saxon.TransformerFactoryImpl
(If you use Xalan) Set the
CLASSPATH environment variable
for Xalan:
- Find the
CLASSPATH environment variable in the list. If
CLASSPATH is not listed, click on
New under the System variables
section.
- Type C:\xalan\bin
Important: If there are other variables listed, create a
new variable separated by a semicolon. Ensure there are no spaces
before or after the semicolon.