You guys should trie PJA it's a Pure java Awt toolkit pja.jar that enables
you to do call Graphics/Graphics2D function on application without the
need of an X Server : http://www.eteks.com/pja/en/index.jsp

I use it on my flash generator to get font glyphs and it works well
without X running on my Linux machine... :-)

This is a great package I only came accross it recently, but it is a reall


On Wed, 31 Jan 2001, John Zhang wrote:

>
> I am forwarding this to j2d-interest group.
>
> John
>
> >I finally found a version of Xvfb that seems to work well on SPARC Solaris,
> >from
> >http://puck.informatik.med.uni-giessen.de/download/GISWxwplt-sparc.tar.gz
> >for future reference.
> >
> >However, when I try to use JPEGImageEncoder.encode(), I get
> >java.lang.NoClassDefFoundError or
> >java.lang.RuntimeException: Unable to process image stream, incorrect
> >format.
> >
> >I do not get these errors when running under a real X11.  Any ideas?
> >Thanks, Joe
> >
> >java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError
> >        at java.lang.Class.forName0(Native Method)
> >        at java.lang.Class.forName(Class.java:120)
> >        at
> >java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
> >.java:58)
> >        at
> >java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1011)
> >        at
> >com.sun.media.jai.codecimpl.JPEGImage.<init>(JPEGImageDecoder.java:95)
> >        at
> >com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImage
> >Decoder.java:
> >49)
> >        at
> >com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:67)
> >        at com.sun.media.jai.opimage.JPEGRIF.create(JPEGRIF.java:52)
> >        at java.lang.reflect.Method.invoke(Native Method)
> >        at javax.media.jai.FactoryCache.invoke(FactoryCache.java:128)
> >        at
> >javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1651)
> >        at
> >javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperatio
> >nRegistry.jav
> >a:479)
> >        at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:338)
> >        at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:103)
> >        at java.lang.reflect.Method.invoke(Native Method)
> >        at javax.media.jai.FactoryCache.invoke(FactoryCache.java:128)
> >        at
> >javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1651)
> >        at
> >javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperatio
> >nRegistry.jav
> >a:479)
> >        at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:338)
> >        at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:779)
> >        at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:825)
> >        at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2052)
> >        at
> >com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:13
> >7)
> >
> >java.lang.reflect.InvocationTargetException: java.lang.RuntimeException:
> >Unable to process image str
> >eam, incorrect format.
> >        at
> >com.sun.media.jai.codecimpl.JPEGImage.<init>(JPEGImageDecoder.java:69)
> >        at
> >com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImage
> >Decoder.java:
> >49)
> >        at
> >com.sun.media.jai.codec.ImageDecoderImpl.decodeAsRenderedImage(ImageDecoderI
> >mpl.java:148)
> >        at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:118)
> >        at java.lang.reflect.Method.invoke(Native Method)
> >        at javax.media.jai.FactoryCache.invoke(FactoryCache.java:128)
> >        at
> >javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1651)
> >        at
> >javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperatio
> >nRegistry.jav
> >a:479)
> >        at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:338)
> >        at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:779)
> >        at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:825)
> >        at javax.media.jai.RenderedOp.getSampleModel(RenderedOp.java:2052)
> >        at
> >com.sun.media.jai.codecimpl.JPEGImageEncoder.encode(JPEGImageEncoder.java:13
> >7)
> >
> >===========================================================================
> >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> >of the message "signoff JAI-INTEREST".  For general help, send email to
> >[EMAIL PROTECTED] and include in the body of the message "help".
>

--
Any nitwit can understand computers. Many do.
----------------------------------------------------------------
VVeB : triple Ws dot audiophile dot com slash wrick
|V|@!l : wrick at audiophile dot com
---------------------------------------------( Eric Dofonsou )--

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to