lmhelp wrote:

Hi everyone,

Thank you for reading my post.

Suppose that, in a certain directory, I have the following files:
"test.xml" and "test.xsl".
If I go to this directory and launch in command line:
$ fop -xml test.xml -xsl test.xsl -pdf test.pdf
"test.pdf" is properly created.

Now, I which I could use another syntax such as:

In other words: You want to use your own script to start FOP instead of supplied one.


$ java -cp "C:/Program Files/fop-0.95/build/fop.jar;C:/Program
Files/fop-0.95/lib/xml-apis-1.3.04.jar;C:/Program
Files/fop-0.95/lib/xml-apis-ext-1.3.04.jar;C:/Program
Files/fop-0.95/lib/xercesImpl-2.7.1.jar;C:/Program
Files/fop-0.95/lib/xalan-2.7.0.jar;C:/Program
Files/fop-0.95/lib/serializer-2.7.0.jar;C:/Program
Files/fop-0.95/lib/batik-all-1.7.jar;C:/Program
Files/fop-0.95/lib/xmlgraphics-commons-1.3.1.jar;C:/Program
Files/fop-0.95/lib/avalon-framework-4.2.0.jar;C:/Program
Files/fop-0.95/lib/commons-io-1.3.1.jar;C:/Program
Files/fop-0.95/lib/commons-logging-1.0.4.jar" org.apache.fop.apps.Fop -q
                                                ^^^^^^^^^^^^^^^^^^^^^^^

Here is the problem: This is the wrong class to start FOP with. The correct class is in the script supplied with FOP: org.apache.fop.cli.Main

Change your script to reference this class and you should be fine.

<snip/>

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to