L'eau wrote:
-jar fop.jar -xml xmlfoRef.xml -xsl xml2pdf.xsl -pdf output.pdf
  ^^^^^
Using the -jar option forces the classpath defined in the
manifest in the jar, which contains relative path entries.
I belive the -cp setting is completely irrelevant in this
scenario.

Replace "-jar fop.jar" by org.apache.fop.apps.Fop
or use
 java -jar fop.jar -xml...
in the directory where you installed FOP (the lib directory
with the jars should be a subdirectory).

A much better and easier way is to use the fop.bat or
fop.sh files from the distribution. Make sure the directory
where the files are stored is the current directory while
executing them.

J.Pietschmann



Reply via email to