Installing FOP on Linux

  1. Enter the URL: http://apache.tradebit.com/pub/xml/fop/.
  2. From the FOP page, in the Name column, select "fop-0.95-bin.tar.gz" .
  3. Save and extract the package file into a Linux home directory.
  4. Set the CLASSPATH environment variable for the following jar files:
    • build/fop.jar
    • lib/avalon-framework-4.2.0.jar
    • lib/batik-all-1.7.jar
    • lib/commons-io-1.3.1.jar
    • lib/commons-logging-1.0.4.jar
    • lib/serializer-2.7.0.jar
    • lib/servlet-2.2.jar
    • lib/xalan-2.7.0.jar
    • lib/xercesImpl-2.7.1.jar
    • lib/xml-apis-ext-1.3.04.jar
    • lib/xmlgraphics-commons-1.3.1.jar
    export CLASSPATH=${fop_dir}/build/fop.jar:${fop_dir}/lib/avalon-framework-4.2.0.jar:
               ${fop_dir}/lib/batik-all-1.7.jar:${fop_dir}/lib/commons-io-1.3.1.jar:
               ${fop_dir}/lib/commons-logging-1.0.4.jar:${fop_dir}/lib/serializer-2.7.0.jar:
               ${fop_dir}/lib/servlet-2.2.jar:${fop_dir}/lib/xalan-2.7.0.jar:
               ${fop_dir}/lib/xercesImpl-2.7.1.jar:${fop_dir}/lib/xml-apis-ext-1.3.04.jar:
               ${fop_dir}/lib/xmlgraphics-commons-1.3.1.jar:${CLASSPATH}