Re: Cannot locate JPEG decoder
Posted by dscho on Jan 06, 2009; 9:48pm
URL: http://imagej.273.s1.nabble.com/Cannot-locate-JPEG-decoder-tp3694096p3694099.html
Hi,
On Tue, 6 Jan 2009, vmunukutla wrote:
> I got the error "Cannot locate JPEG decoder" when I am trying to uncompress a
> single frame compressed Tiff Image.
> Then I have included jai_imageio.jar and jmagick.jar in my class path and
> run the program, but I am getting the error
>
> sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageWriterSpi:
> Provider com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageWriterSpi could
> not be instantiated: java.lang.IllegalArgumentException: vendorName == null!
I had this error at some stage when an incorrectly packages JAI was in the
classpath. The issue is that the manifest (META-INF/MANIFEST.MF) in the
.jar file did not define a vendor.
FWIW my current jai_codec.jar's META-INF/MANIFEST.MF looks like this:
-- snip --
Manifest-Version: 1.0
Sealed: true
Implementation-Version: 1.1.2-beta
Specification-Title: Java Advanced Imaging Codecs
Specification-Version: 1.1-mrd
Implementation-Title: com.sun.media.jai.codec
Extension-Name: com.sun.media.jai.codec
Created-By: 1.3.1_03 (Sun Microsystems Inc.)
Implementation-Vendor: Sun Microsystems, Inc.
Specification-Vendor: Sun Microsystems, Inc.
-- snap --
Hth,
Dscho