Setting environment variables on Windows

  1. From the Start Menu, select Start > Settings > Control Panel.
  2. Double-click System to open the System Properties window.
  3. On the Advanced tab, select environmental variables .
  4. Modify each environmental or system variable.
    Set the PATH environment variable to include the directory where you installed the Ant bin directory:
    1. Find the PATH environment variable in the list. If PATH is not listed, click on New under the System variables section.
    2. 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:
    1. Click on New under the System variables section.
    2. Type ANT_HOME in the variable name field.
    3. Type C:\ant in the variable value field.
    Set the ANT_OPTS environment variable to the directory where you installed Ant:
    1. Click New under the System variables section.
    2. Type ANT_OPTS in the variable name field.
    3. Type -Xmx256M in the variable value field.
    Set the JAVA_HOME environment variable to the directory where you installed the J2SE SDK application:
    1. Click on New under the System variables section.
    2. Type JAVA_HOME in the variable name field.
    3. 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:
    1. Click on New under the System variables section.
    2. Type JHHOME in the variable name field.
    3. Type C:\javahelp\jh2.0 in the variable value field.
    Create or append to the CLASSPATH environment variable for DITA-OT:
    1. Find the CLASSPATH environment variable in the list. If CLASSPATH is not listed, click New under the System variables section.
    2. 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:
    1. Find the CLASSPATH environment variable in the list. If CLASSPATH is not listed, click New under the System variables section.
    2. 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:
    1. Find the CLASSPATH environment variable in the list. If CLASSPATH is not listed, click on New under the System variables section.
    2. 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.
    3. 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:
    1. Find the CLASSPATH environment variable in the list. If CLASSPATH is not listed, click on New under the System variables section.
    2. 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.