Setting Environment Variables

Use this information to find and set your environment variables. Set your system environment variables after all DITA Open Toolkit items are installed. The environment variables must be set for each item installed in this guide.

  1. Type in the Linux Console.
  2. Modify each environmental or system variable.
    Option Description
    Set the PATH environment variable to include the directory where you installed the Ant bin directory.
    1. export PATH=${PATH}:${ANT_HOME}/bin:${JAVA_HOME}/bin
    Set the ANT_HOME environment variable to the directory where you installed Ant.
    1. export ANT_HOME=${ant_dir}
    Set the JAVA_HOME environment variable to the directory where you installed the J2SE SDK application.
    1. export JAVA_HOME=${java_dir}
    Set the JHHOME environment variable to the directory where you installed the JavaHelp application.
    1. export JHHOME=${javahelp_dir}
    Set the CLASSPATH environment variable to include the .jar files from the Apache FOP application.
    1. set up your environment variable CLASSPATH to include the fop.jar, batik.jar and avalon.jar files in the FOP directory. For example:
      export CLASSPATH=${fop_dir}/build/fop.jar:${fop_dir}/lib/batik.jar:${fop_dir}/lib/avalon-framework-cvs-20020806.jar:${CLASSPATH}
    Set the CLASSPATH environment variable to include the directory where you installed Saxon. If you use the Saxon,
    1. Set up CLASSPATH to include the saxon.jar file. For example:
      export CLASSPATH=${CLASSPATH}:${saxon_dir}/saxon.jar 
    2. Set up ANT_OPTS. For example:
      export ANT_OPTS=${ANT_OPTS} -Djavax.xml.transform.TransformerFactory=com.icl.saxon.TransformerFactoryImpl
    Set the CLASSPATH environment variable to include the directory where you installed Xalan. If you use the Xalan,
    1. Set up CLASSPATH to include the xalan.jar file and the xercesImpl.jar file. For example:
      export CLASSPATH=${CLASSPATH}:${xalan_dir}/bin