harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Beyer <ndbe...@apache.org>
Subject Re: [classlib][suncompat] missing method com/sun/image/codec/jpeg/JPEGCodec.createJPEGDecoder(Ljava/io/InputStream)
Date Fri, 16 Oct 2009 00:24:06 GMT
On Thu, Oct 15, 2009 at 1:44 PM, Mohanraj Loganathan
<mohanraj.l@gmail.com> wrote:
> Apache ANT has the target called image which actually uses Suns Java
> Advanced Imaging API (JAI). JAI intern uses the functions in suncompat.jar.
> Unit tests pertaining to image target is failing with the exception[1] when
> run with HDK.

Is there a standard alternative to this API? Or is this an API that
can be used with any JRE?

-Nathan
>
> I read the mailing list
> http://harmony.markmail.org/message/7dzju3fmkvi3hpeb?q=suncompat
> which talks about why suncompat is not included in boot classpath and the
> purpose of suncompat jar. But when i enabled the suncompat.jar in boot
> classpath, I get the exception [1].
>
> So it looks like suncompat libraries in hdk is outdated. Also I believe we
> dont have the specification to update.
>
> Any thoughts on this ?
>
> [1] Exception :
> Caused by: java.lang.NoSuchMethodError:
> com/sun/image/codec/jpeg/JPEGCodec.createJPEGDecoder(Ljava/io/InputStream;)Lcom/
> sun/image/codec/jpeg/JPEGImageDecoder; while resolving constant pool entry
> at index 7 in class com/sun/media/jai/codecim
> pl/JPEGImage
>        at
> com.sun.media.jai.codecimpl.JPEGImage.<init>(JPEGImageDecoder.java:106)
>        at
> com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:46)
>        at
> com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:88)
>        at com.sun.media.jai.opimage.JPEGRIF.create(JPEGRIF.java:43)
>        at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
>        ... 23 more
>
>
> Thanks and Regards,
> Mohan
>

Mime
View raw message