Cannot locate JPEG decoder

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot locate JPEG decoder

vmunukutla
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!

Please help me.

Regards,
Phanikanth

Reply | Threaded
Open this post in threaded view
|

Re: Cannot locate JPEG decoder

dscho
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
Reply | Threaded
Open this post in threaded view
|

Re: Cannot locate JPEG decoder

Prashant-2-3
In reply to this post by vmunukutla
Hi Phanikanth,

      As Melissa said you should install JAI Image I/O native library.
     After installing if you facing the same problem then please check the
following things.

     if you have multiple java installed on your system then see from which
jre you running your
     application and which jre you are installed JAI I/O package.

    because some time ago i also faced same problem,And i had many updated
version of java installed and i installed JAI on previous package.

 Please run with a particular java.exe like
 "C:\Program Files\java\jre1.6.0_06\bin\java.exe"  yourfilename

Thanks




----- Original Message -----
From: "vmunukutla" <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, January 06, 2009 8:00 PM
Subject: Cannot locate JPEG decoder


>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!
>
> Please help me.
>
> Regards,
> Phanikanth
>
>
> --
> View this message in context:
> http://n2.nabble.com/Cannot-locate-JPEG-decoder-tp2117656p2117656.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Cannot locate JPEG decoder

vmunukutla

Thanks to Melissa, I could solve the problem by installing JAI Image I/O native library.

Regards,
Phanikanth

prashant-2 wrote
Hi Phanikanth,

      As Melissa said you should install JAI Image I/O native library.
     After installing if you facing the same problem then please check the
following things.

     if you have multiple java installed on your system then see from which
jre you running your
     application and which jre you are installed JAI I/O package.

    because some time ago i also faced same problem,And i had many updated
version of java installed and i installed JAI on previous package.

 Please run with a particular java.exe like
 "C:\Program Files\java\jre1.6.0_06\bin\java.exe"  yourfilename

Thanks




----- Original Message -----
From: "vmunukutla" <vmunukutla@CTEPL.COM>
To: <IMAGEJ@LIST.NIH.GOV>
Sent: Tuesday, January 06, 2009 8:00 PM
Subject: Cannot locate JPEG decoder


>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!
>
> Please help me.
>
> Regards,
> Phanikanth
>
>
> --
> View this message in context:
> http://n2.nabble.com/Cannot-locate-JPEG-decoder-tp2117656p2117656.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>