Carsten Stiller wrote:
I'm trying to use FOP for rendering documents to awt-images for an
application running on PDAs using IBMs latest J9 virtual machine. It
implements CDC Personal Profile 1.1.
To integrate FOP into my application I used some code parts of the AWT
viewer application and it works quite well with Suns J2SE 5.0 virtual
machine. Running the same application on the PDA results in a
NoClassDefFoundError for org.apache.fop.renderer.awt.AWTRenderer.
As I'm pretty sure the classpath is set correct and is containing FOP
and the other libs needed (batik, avalon ...) and other FOP classes are
instanciated before (i.e. org.apache.fop.viewer.Translator) I don't see
where the problem might be.
Did anyone managed to run FOP under IBMs J9 VM or has any idea what
might be the problem?
Hmmm, maybe some code examples (copied from the example AWT viewer
application with my debug-outputs) to demonstrate the problem:
[...]
translator = getResourceBundle(TRANSLATION_PATH + "resources." +
language);
translator.setMissingEmphasized(false);
System.err.println("Class exists: " + (translator instanceof
org.apache.fop.viewer.Translator));
renderer = new org.apache.fop.render.awt.AWTRenderer(translator);
System.err.println("Class exists: " + (renderer instanceof
org.apache.fop.render.awt.AWTRenderer));
[...]
On SUNs VM the output is as expected
Class exists: true
Class exists: true
on the IBM VM only the first println is reached, as the instantiation of
the AWTRenderer results in a NoClassDefFoundError.
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]