From: Simon Pepping
The usual and recommended practice for starting FOP from the command line is to run the
batch file fop.bat (Windows) or the shell script fop (Unix/Linux).
- If you write your own scripts, be sure to review these standard scripts to make sure that
- you get your environment properly configured.
-
- The standard scripts for starting FOP require that the environment variable JAVA_HOME be
+ These scripts require that the environment variable JAVA_HOME be
set to a path pointing to the appropriate Java installation on your system. Macintosh OSX
includes a Java environment as part of its distribution. We are told by Mac OSX users that
the path to use in this case is
- As an alternative to the start scripts you can run "java -jar build/fop.jar" in which case
- FOP tries to build the classpath for running FOP dynamically. Please note, that this might
- not always work as expected.
- /Library/Java/Home
. Caveat:
@@ -105,11 +103,6 @@
Java on Mac OSX FAQ for information as
it becomes available.
FOP's entry point for your own scripts is the class
+org.apache.fop.cli.Main
. The general pattern for the
+ command line is: java -classpath <CLASSPATH>
+ org.apache.fop.cli.Main <arguments>
. The arguments
+ consist of the options and infile and outfile specifications
+ as shown above for the standard scripts. You may wish to review
+ the standard scripts to make sure that
+ you get your environment properly configured.
+
+ As an alternative to the start scripts you can run "java -jar build/fop.jar" in which case + FOP tries to build the classpath for running FOP dynamically. Please note, that this might + not always work as expected. +
+