Java Mailing List Archive

http://www.java2.5341.com/

Home » fop-users-digest.xmlgraphics »

fop-users Digest 2 Jan 2013 07:29:57 -0000 Issue 2630

fop-users-digest-help

2013-01-02


Author LoginPost Reply

fop-users Digest 2 Jan 2013 07:29:57 -0000 Issue 2630

Topics (messages 36144 through 36144)

FOP 1.1 embedded examples
 36144 by: Arjan Bokx

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: fop-users@(protected)
To unsubscribe, e-mail: fop-users-digest-unsubscribe@(protected)
For additional commands, e-mail: fop-users-digest-help@(protected)

----------------------------------------------------------------------


Attachment: fop-users_36144.eml (zipped)
Hello everybody,

I have a question about getting the "embedded" examples of FOP 1.1 to work.
Is this the right place to ask?
(If not, please redirect me and disregard the following)

My OS is Windows XP.
I've downloaded and installed the Java SDK 1.7.0_10
I've downloaded and installed fop 1.1
I've downloaded and installed Ant.
With Ant, I compiled the "embedded" examples.
"Ant example1" correctly runs ExampleFO2PDF.
What should I do to call ExampleFO2PDF from Java? Actually I wish to call it from Delphi, using JNI, but first things first.
"Java ExampleFO2PDF" from the command line gives:
Exception in thread "main" java.lang.NoClassDefFoundError: ExampleFO2PDF (wrong name: embedding/ExampleFO2PDF)

When I add just about every path to the classpath with the command line option -cp, I get:
Error: Could not find or load main class ExampleFO2PDF.main

Could you help me please.


Regards,
Arjan Bokx


©2008 java2.5341.com - Jax Systems, LLC, U.S.A.