Skip to main content

Unable to use ImageRead operation

4 replies [Last post]
campus
Offline
Joined: 2003-06-30

Hi,

today I added the JAI ImageIO libs to my classpath and tried to run

PlanarImage source = JAI.create ("imageread", imageFile);

but this failed because of

java.lang.IllegalArgumentException: imageread: No OperationDescriptor is registered in the current operation registry under this name.
at javax.media.jai.JAI.createNS(JAI.java:1070)
at javax.media.jai.JAI.create(JAI.java:973)
at javax.media.jai.JAI.create(JAI.java:1408)
at

Any idea what might be the reason?
The code runs inside its own classloader where all the JAI libs are added. Could this be the problem?

Regards,
Campus

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Brian Burkhalter

Sounds like your CLASSPATH setting is incorrect.

Brian

On Fri, 24 Feb 2006, jai-imageio@javadesktop.org wrote:

> Hi,
>
> today I added the JAI ImageIO libs to my classpath and tried to run
>
> PlanarImage source = JAI.create ("imageread", imageFile);
>
> but this failed because of
>
> java.lang.IllegalArgumentException: imageread: No OperationDescriptor is registered in the current operation registry under this name.
> at javax.media.jai.JAI.createNS(JAI.java:1070)
> at javax.media.jai.JAI.create(JAI.java:973)
> at javax.media.jai.JAI.create(JAI.java:1408)
> at
>
> Any idea what might be the reason?
> The code runs inside its own classloader where all the JAI libs are added. Could this be the problem?
>
>
>
> Regards,
> Campus
> [Message sent by forum member 'campus' (campus)]
>
> http://forums.java.net/jive/thread.jspa?messageID=86163
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail: interest-help@jai-imageio.dev.java.net
>
>

----------------
Brian Burkhalter
Java Media, Imaging, and Graphics
Sun Microsystems, Inc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net

Christoph Wagner

Hi Brian,

thanks for your time.

> Sounds like your CLASSPATH setting is incorrect.

I just added the Image I/O libs to the same location where the main
JAI libs reside. Therefore I think they are in the classpath. But they
are not found by the System Classloader but by a plugin classloader
loading my plugins. Could this make such problems?

Regards,
Christoph Wagner

> Brian
>
> On Fri, 24 Feb 2006, jai-imageio@javadesktop.org wrote:
>
> > Hi,
> >
> > today I added the JAI ImageIO libs to my classpath and tried to
run
> >
> > PlanarImage source = JAI.create ("imageread", imageFile);
> >
> > but this failed because of
> >
> > java.lang.IllegalArgumentException: imageread: No
> OperationDescriptor is registered in the current operation
> registry under this name.
> > at javax.media.jai.JAI.createNS(JAI.java:1070)
> > at javax.media.jai.JAI.create(JAI.java:973)
> > at javax.media.jai.JAI.create(JAI.java:1408)
> > at
> >
> > Any idea what might be the reason?
> > The code runs inside its own classloader where all the JAI
> libs are added. Could this be the problem?
> >
> >
> >
> > Regards,
> > Campus
> > [Message sent by forum member 'campus' (campus)]
> >
> > http://forums.java.net/jive/thread.jspa?messageID=86163
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> interest-unsubscribe@jai-imageio.dev.java.net
> > For additional commands, e-mail:
> > interest-help@jai-imageio.dev.java.net
> >
> >
>
> ----------------
> Brian Burkhalter
> Java Media, Imaging, and Graphics
> Sun Microsystems, Inc.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This email message is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited.
> If you are not the intended recipient, please contact the
> sender by reply email and destroy all copies of the original
message.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail:
> interest-help@jai-imageio.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net

Brian Burkhalter

On Mon, 27 Feb 2006, Christoph Wagner wrote:

>> Sounds like your CLASSPATH setting is incorrect.
>
> I just added the Image I/O libs to the same location where the main
> JAI libs reside. Therefore I think they are in the classpath. But they
> are not found by the System Classloader but by a plugin classloader
> loading my plugins. Could this make such problems?

Unless all jars in the directory in question are loaded automatically, such as
when the are in jre/lib/ext or jdk/jre/lib/ext, you would need to have them
explicitly mentioned in your CLASSPATH.

Brian

----------------
Brian Burkhalter
Java Media, Imaging, and Graphics
Sun Microsystems, Inc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net

Christoph Wagner

Hi,

> >> Sounds like your CLASSPATH setting is incorrect.
> >
> > I just added the Image I/O libs to the same location where the
main
> > JAI libs reside. Therefore I think they are in the
> classpath. But they
> > are not found by the System Classloader but by a plugin
classloader
> > loading my plugins. Could this make such problems?
>
> Unless all jars in the directory in question are loaded
> automatically, such as when the are in jre/lib/ext or
> jdk/jre/lib/ext, you would need to have them explicitly
> mentioned in your CLASSPATH.

I forgot to mention that all those JARs are loaded automatically.

Regards,
Christoph Wagner

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
For additional commands, e-mail: interest-help@jai-imageio.dev.java.net