Not sure, but I assume the CDC Personal Profile doesn't include Swing.
FOP hasn't been designed and maintained with the CDC in mind. If FOP
works at all on the Personal Profile you might need to consider writing
a replacement viewer that doesn't use Swing. Depending on your needs
there might be other possible solutions. I suspect FOP is generally a
little heavy for such devices. I don't know your requirements but maybe
you should consider rendering your FO documents on a server and transfer
bitmap images or PDFs to the client if that's an option.

On 23.10.2006 09:49:19 Carsten Stiller wrote:
> 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


Jeremias Maerki


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

Reply via email to