Massimiliano Cuccia wrote:
> Sorry for missing informations ...
> now I will try to be more unambiguous
> 
> this is my Java code
> 
> 1        Driver driver =
>             new Driver(
>                 new InputSource(new
> java.io.FileInputStream("C:\\character.fo")),
>                 new FileOutputStream("C:\\prova.pdf"));
> 2        driver.setRenderer(Driver.RENDER_PDF);
> 3        driver.run();
> 
> PS: character.fo is the same file of the examples in the distribution
> 
> the problems comes in the first row (the call to Driver constructor)
> Uncaught exception is java.lang.ExceptionInInitializerError
> 
> I'm using VisualAge and all the jars in the lib folder of fop were included
> (and no other)

Hmmmm, that works like a charm for me in WebSphere App Developer 4.
As Joerg poined out that is a problem with resource loading.
Did you import resources from batik.jar along with classes ?

-- 
Oleg Tkachenko
Multiconn International, Israel


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

Reply via email to