Skip to main content

[JAI-IMAGEIO] How do I get ImageIO version number from an applet?

15 replies [Last post]
Anonymous

Feom an applet, I can detect the JRE / Java version from System.properties() but how do I detect the ImageIO version -- if ImageIO is installed?

I think I can figure out if ImageIO is installed just by trying to use a static method from ImageIO in a try / catch block. But if there is a version of ImageIO installed. I think it would be important to know if it is a version current and compatible with the installed JRE -- Yes? No?

Then I can popup a browser window telling the user where to go and how to update his JRE / ImageIO installation.

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

Reply viewing options

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

Ok, I'm lost. There's two different ImageIO's???? One in JAI and one in the JDK/JRE?

Cause I have the latest JRE 5.0_10 installed and there is no bundled ImageIO. I have to install that separate. Same with the JDK. I had to install ImageIO separately.

Could someone please clarify this issue???

Nidel, Mike wrote:
> not so.
>
> java-imageio-interest@java.sun.com
>
> this list here is for the JAI ImageIO Tools (jai-imageio.dev.java.net)
> that list is for core Java ImageIO issues.
>
> As far as I know there is no such thing as an "ImageIO version"
> in the public sense, as it would be the same as the JRE in which
> it is bundled.
>
>
>>-----Original Message-----
>>From: robert engels [mailto:rengels@ix.netcom.com]
>>Sent: Tuesday, January 09, 2007 6:28 PM
>>To: interest@jai-imageio.dev.java.net
>>Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version
>>number from an applet?
>>
>>
>>This is the only list I subscribe to, and it covers ImageIO and
>>ImageIO tools... ???
>>
>>On Jan 9, 2007, at 5:21 PM, Nidel, Mike wrote:
>>
>>
>>>aren't we talking about JAI ImageIO tools here and not ImageIO?
>>>otherwise we should probably be on the imageio interest list.
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: Ken Warner [mailto:kwarner@uneedspeed.net]
>>>>Sent: Tuesday, January 09, 2007 2:07 PM
>>>>To: interest@jai-imageio.dev.java.net
>>>>Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version
>>
>>number from
>>
>>>>an applet?
>>>>
>>>>
>>>>Hi Robert,
>>>>
>>>>Yes, I figure Class.forName() will be used somehow. Knowing that
>>>>ImageIO is installed is easy. Just try one of the static method
>>>>calls in a try/catch block. Knowing what version of ImageIO is
>>>>installed is harder.
>>>>
>>>>I'll post my solution if I figure it out.
>>>>
>>>>robert engels wrote:
>>>>
>>>>>A simple way may be to use several 'Class.forName()' calls to
>>>>>determine what is available.
>>>>>
>>>>>You could also use the ServiceProvider interface.
>>>>>
>>>>>On Jan 9, 2007, at 12:47 PM, Ken Warner wrote:
>>>>>
>>>>>
>>>>>>Hi Mike,
>>>>>>
>>>>>>You're the first to reply. Thanks.
>>>>>>What I have to do is check the version of ImageIO from an applet
>>>>>>after it starts and before it loads an image. I need to
>>>>
>>>>do that so I
>>>>
>>>>>>can tell the user to upgrade ImageIO if he needs to.
>>>>>>Doing this from an applet is tricky. Applets are so
>>>>
>>>>restricted in
>>>>
>>>>>>what they can know about the client machine.
>>>>
>>>>System.getProperties ()
>>>>
>>>>>>fails in applets. An applet has to ask for specific system
>>>>>>properties by name.
>>>>>>
>>>>>>I think that given the proliferation of Java VM's and related
>>>>>>packages that a simple, universal interface implemented by
>>>>
>>>>Class that
>>>>
>>>>>>would let one easily inquire about the version of a
>>>>
>>>>particular class
>>>>
>>>>>>would be really useful. I mean SUN is shipping 1.5 and
>>>>
>>>>1.6 at the
>>>>
>>>>>>same time. And I think that ImageIO can be found in
>>>>
>>>>several versions.
>>>>
>>>>>>It makes things really difficult for applets that don't
>>
>>know what
>>
>>>>>>kind of environment they are going to open their eyes in.
>>>>>>
>>>>>>I'll run some tests later today and see if your
>>>>
>>>>information leads to
>>>>
>>>>>>something useful -- thanks.
>>>>>>
>>>>>>Nidel, Mike wrote:
>>>>>>
>>>>>>
>>>>>>>did anyone ever reply?
>>>>>>>I believe if you get the Implementation-Version for
>>>>>>>com.sun.media.imageio this should give you the version
>>
>>number. If
>>
>>>>>>>you look in the Manifest for jai_imageio.jar the version is
>>>>>>>stored there. as for how to get the implementation version... I
>>>>>>>forget. It was something
>>>>>>>with the Package object I think, Brian had posted it on the JAI
>>>>>>>interest
>>>>>>>list a few months ago.
>>>>>>>ah, here it is:
>>>>>>>http://java.sun.com/j2se/1.5.0/docs/api/java/lang/
>>>>>>>Package.html#getImplem
>>>>>>>entationVersion()
>>>>>>>
>>>>>>>
>>>>>>>>-----Original Message-----
>>>>>>>>From: Ken Warner [mailto:kwarner@uneedspeed.net] Sent: Sunday,
>>>>>>>>January 07, 2007 8:58 PM
>>>>>>>>To: interest@jai-imageio.dev.java.net
>>>>>>>>Subject: [JAI-IMAGEIO] How do I get ImageIO version
>>>>
>>>>number from an
>>>>
>>>>>>>>applet?
>>>>>>>>
>>>>>>>>
>>>>>>>>Feom an applet, I can detect the JRE / Java version from
>>>>>>>>System.properties() but how do I detect the ImageIO
>>>>
>>>>version -- if
>>>>
>>>>>>>>ImageIO is installed?
>>>>>>>>
>>>>>>>>I think I can figure out if ImageIO is installed just by
>>>>
>>>>trying to
>>>>
>>>>>>>>use a static method from ImageIO in a try / catch block.
>>>>
>>>> But if
>>>>
>>>>>>>>there is a version of ImageIO installed. I think it would be
>>>>>>>>important to know if it is a version current and
>>>>
>>>>compatible with
>>>>
>>>>>>>>the installed JRE -- Yes? No?
>>>>>>>>
>>>>>>>>Then I can popup a browser window telling the user where
>>>>
>>>>to go and
>>>>
>>>>>>>>how to update his JRE / ImageIO installation.
>>>>>>>>
>>>>>>>>
>>>>
>>>>-------------------------------------------------------------------
>>>>
>>>>>>>>- - 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
>>>>
>>>>>>
>>>>>>
>>---------------------------------------------------------------------
>>
>>>>>>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
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>---------------------------------------------------------------------
>>
>>>>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
>>>
>>
>>---------------------------------------------------------------------
>>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
>
>
>

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

There are in effect two different entities:

1) Java SE Image I/O
2) JAI Image I/O Tools

Java SE Image I/O is the javax.imageio packages and supporting non-public
classes and is part of Java SE, hence the JRE and JDK. It was added as of Java
SE 1.4. It defines the javax APIs and provides plugins to support various
image formats. The supported formats vary as a function of Java SE version.

JAI Image I/O Tools is a set of additional plugins which add support for
formats not handled by Java SE Image I/O, as well as other capabilities. It is
a separate download and must be separately installed.

On Tue, 9 Jan 2007, Ken Warner wrote:

> Ok, I'm lost. There's two different ImageIO's???? One in JAI and one in the
> JDK/JRE?
> Cause I have the latest JRE 5.0_10 installed and there is no bundled ImageIO.
> I have to install that separate. Same with the JDK. I had to install
> ImageIO separately.
>
> Could someone please clarify this issue???
>
> Nidel, Mike wrote:
>> not so.
>>
>> java-imageio-interest@java.sun.com
>>
>> this list here is for the JAI ImageIO Tools (jai-imageio.dev.java.net)
>> that list is for core Java ImageIO issues.
>>
>> As far as I know there is no such thing as an "ImageIO version"
>> in the public sense, as it would be the same as the JRE in which
>> it is bundled.
>>
>>
>>> -----Original Message-----
>>> From: robert engels [mailto:rengels@ix.netcom.com] Sent: Tuesday, January
>>> 09, 2007 6:28 PM
>>> To: interest@jai-imageio.dev.java.net
>>> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version number from an
>>> applet?
>>>
>>>
>>> This is the only list I subscribe to, and it covers ImageIO and ImageIO
>>> tools... ???
>>>
>>> On Jan 9, 2007, at 5:21 PM, Nidel, Mike wrote:
>>>
>>>
>>>> aren't we talking about JAI ImageIO tools here and not ImageIO? otherwise
>>>> we should probably be on the imageio interest list.
>>>>
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net]
>>>>> Sent: Tuesday, January 09, 2007 2:07 PM
>>>>> To: interest@jai-imageio.dev.java.net
>>>>> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version
>>>
>>> number from
>>>>> an applet?
>>>>>
>>>>>
>>>>> Hi Robert,
>>>>>
>>>>> Yes, I figure Class.forName() will be used somehow. Knowing that
>>>>> ImageIO is installed is easy. Just try one of the static method calls
>>>>> in a try/catch block. Knowing what version of ImageIO is installed is
>>>>> harder.
>>>>>
>>>>> I'll post my solution if I figure it out.
>>>>>
>>>>> robert engels wrote:
>>>>>
>>>>>> A simple way may be to use several 'Class.forName()' calls to determine
>>>>>> what is available.
>>>>>>
>>>>>> You could also use the ServiceProvider interface.
>>>>>>
>>>>>> On Jan 9, 2007, at 12:47 PM, Ken Warner wrote:
>>>>>>
>>>>>>
>>>>>>> Hi Mike,
>>>>>>>
>>>>>>> You're the first to reply. Thanks.
>>>>>>> What I have to do is check the version of ImageIO from an applet after
>>>>>>> it starts and before it loads an image. I need to
>>>>>
>>>>> do that so I
>>>>>
>>>>>>> can tell the user to upgrade ImageIO if he needs to.
>>>>>>> Doing this from an applet is tricky. Applets are so
>>>>>
>>>>> restricted in
>>>>>
>>>>>>> what they can know about the client machine.
>>>>>
>>>>> System.getProperties ()
>>>>>
>>>>>>> fails in applets. An applet has to ask for specific system properties
>>>>>>> by name.
>>>>>>>
>>>>>>> I think that given the proliferation of Java VM's and related packages
>>>>>>> that a simple, universal interface implemented by
>>>>>
>>>>> Class that
>>>>>
>>>>>>> would let one easily inquire about the version of a
>>>>>
>>>>> particular class
>>>>>
>>>>>>> would be really useful. I mean SUN is shipping 1.5 and
>>>>>
>>>>> 1.6 at the
>>>>>
>>>>>>> same time. And I think that ImageIO can be found in
>>>>>
>>>>> several versions.
>>>>>
>>>>>>> It makes things really difficult for applets that don't
>>>
>>> know what
>>>>>>> kind of environment they are going to open their eyes in.
>>>>>>>
>>>>>>> I'll run some tests later today and see if your
>>>>>
>>>>> information leads to
>>>>>
>>>>>>> something useful -- thanks.
>>>>>>>
>>>>>>> Nidel, Mike wrote:
>>>>>>>
>>>>>>>
>>>>>>>> did anyone ever reply?
>>>>>>>> I believe if you get the Implementation-Version for
>>>>>>>> com.sun.media.imageio this should give you the version
>>>
>>> number. If
>>>>>>>> you look in the Manifest for jai_imageio.jar the version is stored
>>>>>>>> there. as for how to get the implementation version... I forget. It
>>>>>>>> was something
>>>>>>>> with the Package object I think, Brian had posted it on the JAI
>>>>>>>> interest
>>>>>>>> list a few months ago.
>>>>>>>> ah, here it is:
>>>>>>>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/
>>>>>>>> Package.html#getImplem
>>>>>>>> entationVersion()
>>>>>>>>
>>>>>>>>
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net] Sent: Sunday,
>>>>>>>>> January 07, 2007 8:58 PM
>>>>>>>>> To: interest@jai-imageio.dev.java.net
>>>>>>>>> Subject: [JAI-IMAGEIO] How do I get ImageIO version
>>>>>
>>>>> number from an
>>>>>
>>>>>>>>> applet?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Feom an applet, I can detect the JRE / Java version from
>>>>>>>>> System.properties() but how do I detect the ImageIO
>>>>>
>>>>> version -- if
>>>>>
>>>>>>>>> ImageIO is installed?
>>>>>>>>>
>>>>>>>>> I think I can figure out if ImageIO is installed just by
>>>>>
>>>>> trying to
>>>>>
>>>>>>>>> use a static method from ImageIO in a try / catch block.
>>>>>
>>>>> But if
>>>>>
>>>>>>>>> there is a version of ImageIO installed. I think it would be
>>>>>>>>> important to know if it is a version current and
>>>>>
>>>>> compatible with
>>>>>
>>>>>>>>> the installed JRE -- Yes? No?
>>>>>>>>>
>>>>>>>>> Then I can popup a browser window telling the user where
>>>>>
>>>>> to go and
>>>>>
>>>>>>>>> how to update his JRE / ImageIO installation.
>>>>>>>>>
>>>>>>>>>
>>>>>
>>>>> -------------------------------------------------------------------
>>>>>
>>>>>>>>> - - 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
>>>>>
>>>>>>>
>>>>>>>
>>> ---------------------------------------------------------------------
>>>
>>>>>>> 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
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>> ---------------------------------------------------------------------
>>>
>>>>> 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
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>
> ---------------------------------------------------------------------
> 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

Ken Warner

Ok, I understand now. Java is not simple...

Brian Burkhalter wrote:
> There are in effect two different entities:
>
> 1) Java SE Image I/O
> 2) JAI Image I/O Tools
>
> Java SE Image I/O is the javax.imageio packages and supporting
> non-public classes and is part of Java SE, hence the JRE and JDK. It was
> added as of Java SE 1.4. It defines the javax APIs and provides plugins
> to support various image formats. The supported formats vary as a
> function of Java SE version.
>
> JAI Image I/O Tools is a set of additional plugins which add support for
> formats not handled by Java SE Image I/O, as well as other capabilities.
> It is a separate download and must be separately installed.
>
> On Tue, 9 Jan 2007, Ken Warner wrote:
>
>> Ok, I'm lost. There's two different ImageIO's???? One in JAI and one
>> in the JDK/JRE? Cause I have the latest JRE 5.0_10 installed and there
>> is no bundled ImageIO. I have to install that separate. Same with the
>> JDK. I had to install ImageIO separately.
>>
>> Could someone please clarify this issue???
>>
>> Nidel, Mike wrote:
>>
>>> not so.
>>>
>>> java-imageio-interest@java.sun.com
>>>
>>> this list here is for the JAI ImageIO Tools (jai-imageio.dev.java.net)
>>> that list is for core Java ImageIO issues.
>>>
>>> As far as I know there is no such thing as an "ImageIO version"
>>> in the public sense, as it would be the same as the JRE in which
>>> it is bundled.
>>>
>>>
>>>> -----Original Message-----
>>>> From: robert engels [mailto:rengels@ix.netcom.com] Sent: Tuesday,
>>>> January 09, 2007 6:28 PM
>>>> To: interest@jai-imageio.dev.java.net
>>>> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version number from
>>>> an applet?
>>>>
>>>>
>>>> This is the only list I subscribe to, and it covers ImageIO and
>>>> ImageIO tools... ???
>>>>
>>>> On Jan 9, 2007, at 5:21 PM, Nidel, Mike wrote:
>>>>
>>>>
>>>>> aren't we talking about JAI ImageIO tools here and not ImageIO?
>>>>> otherwise we should probably be on the imageio interest list.
>>>>>
>>>>>
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net]
>>>>>> Sent: Tuesday, January 09, 2007 2:07 PM
>>>>>> To: interest@jai-imageio.dev.java.net
>>>>>> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version
>>>>
>>>>
>>>> number from
>>>>
>>>>>> an applet?
>>>>>>
>>>>>>
>>>>>> Hi Robert,
>>>>>>
>>>>>> Yes, I figure Class.forName() will be used somehow. Knowing that
>>>>>> ImageIO is installed is easy. Just try one of the static method
>>>>>> calls in a try/catch block. Knowing what version of ImageIO is
>>>>>> installed is harder.
>>>>>>
>>>>>> I'll post my solution if I figure it out.
>>>>>>
>>>>>> robert engels wrote:
>>>>>>
>>>>>>> A simple way may be to use several 'Class.forName()' calls to
>>>>>>> determine what is available.
>>>>>>>
>>>>>>> You could also use the ServiceProvider interface.
>>>>>>>
>>>>>>> On Jan 9, 2007, at 12:47 PM, Ken Warner wrote:
>>>>>>>
>>>>>>>
>>>>>>>> Hi Mike,
>>>>>>>>
>>>>>>>> You're the first to reply. Thanks.
>>>>>>>> What I have to do is check the version of ImageIO from an applet
>>>>>>>> after it starts and before it loads an image. I need to
>>>>>>
>>>>>>
>>>>>> do that so I
>>>>>>
>>>>>>>> can tell the user to upgrade ImageIO if he needs to.
>>>>>>>> Doing this from an applet is tricky. Applets are so
>>>>>>
>>>>>>
>>>>>> restricted in
>>>>>>
>>>>>>>> what they can know about the client machine.
>>>>>>
>>>>>>
>>>>>> System.getProperties ()
>>>>>>
>>>>>>>> fails in applets. An applet has to ask for specific system
>>>>>>>> properties by name.
>>>>>>>>
>>>>>>>> I think that given the proliferation of Java VM's and related
>>>>>>>> packages that a simple, universal interface implemented by
>>>>>>
>>>>>>
>>>>>> Class that
>>>>>>
>>>>>>>> would let one easily inquire about the version of a
>>>>>>
>>>>>>
>>>>>> particular class
>>>>>>
>>>>>>>> would be really useful. I mean SUN is shipping 1.5 and
>>>>>>
>>>>>>
>>>>>> 1.6 at the
>>>>>>
>>>>>>>> same time. And I think that ImageIO can be found in
>>>>>>
>>>>>>
>>>>>> several versions.
>>>>>>
>>>>>>>> It makes things really difficult for applets that don't
>>>>
>>>>
>>>> know what
>>>>
>>>>>>>> kind of environment they are going to open their eyes in.
>>>>>>>>
>>>>>>>> I'll run some tests later today and see if your
>>>>>>
>>>>>>
>>>>>> information leads to
>>>>>>
>>>>>>>> something useful -- thanks.
>>>>>>>>
>>>>>>>> Nidel, Mike wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> did anyone ever reply?
>>>>>>>>> I believe if you get the Implementation-Version for
>>>>>>>>> com.sun.media.imageio this should give you the version
>>>>
>>>>
>>>> number. If
>>>>
>>>>>>>>> you look in the Manifest for jai_imageio.jar the version is
>>>>>>>>> stored there. as for how to get the implementation version... I
>>>>>>>>> forget. It was something
>>>>>>>>> with the Package object I think, Brian had posted it on the JAI
>>>>>>>>> interest
>>>>>>>>> list a few months ago.
>>>>>>>>> ah, here it is:
>>>>>>>>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/
>>>>>>>>> Package.html#getImplem
>>>>>>>>> entationVersion()
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> -----Original Message-----
>>>>>>>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net] Sent: Sunday,
>>>>>>>>>> January 07, 2007 8:58 PM
>>>>>>>>>> To: interest@jai-imageio.dev.java.net
>>>>>>>>>> Subject: [JAI-IMAGEIO] How do I get ImageIO version
>>>>>>
>>>>>>
>>>>>> number from an
>>>>>>
>>>>>>>>>> applet?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Feom an applet, I can detect the JRE / Java version from
>>>>>>>>>> System.properties() but how do I detect the ImageIO
>>>>>>
>>>>>>
>>>>>> version -- if
>>>>>>
>>>>>>>>>> ImageIO is installed?
>>>>>>>>>>
>>>>>>>>>> I think I can figure out if ImageIO is installed just by
>>>>>>
>>>>>>
>>>>>> trying to
>>>>>>
>>>>>>>>>> use a static method from ImageIO in a try / catch block.
>>>>>>
>>>>>>
>>>>>> But if
>>>>>>
>>>>>>>>>> there is a version of ImageIO installed. I think it would be
>>>>>>>>>> important to know if it is a version current and
>>>>>>
>>>>>>
>>>>>> compatible with
>>>>>>
>>>>>>>>>> the installed JRE -- Yes? No?
>>>>>>>>>>
>>>>>>>>>> Then I can popup a browser window telling the user where
>>>>>>
>>>>>>
>>>>>> to go and
>>>>>>
>>>>>>>>>> how to update his JRE / ImageIO installation.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>
>>>>>> -------------------------------------------------------------------
>>>>>>
>>>>>>>>>> - - 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
>>>>>>
>>>>>>>>
>>>>>>>>
>>>> ---------------------------------------------------------------------
>>>>
>>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>> ---------------------------------------------------------------------
>>>>
>>>>>> 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
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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

Actually this is more of a bureaucratic artifact. Ideally all of the JAI Image
I/O Tools stuff would be in Java SE and there would not be a separate
download. This is unfortunately not allowed for various reasons I will not go
into. Either that or the plugins would be auto-deployed but I will not get
involved in that discussion either ...

On Tue, 9 Jan 2007, Ken Warner wrote:

> Ok, I understand now. Java is not simple...
>
> Brian Burkhalter wrote:
>> There are in effect two different entities:
>>
>> 1) Java SE Image I/O
>> 2) JAI Image I/O Tools
>>
>> Java SE Image I/O is the javax.imageio packages and supporting non-public
>> classes and is part of Java SE, hence the JRE and JDK. It was added as of
>> Java SE 1.4. It defines the javax APIs and provides plugins to support
>> various image formats. The supported formats vary as a function of Java SE
>> version.
>>
>> JAI Image I/O Tools is a set of additional plugins which add support for
>> formats not handled by Java SE Image I/O, as well as other capabilities. It
>> is a separate download and must be separately installed.
>>
>> On Tue, 9 Jan 2007, Ken Warner wrote:
>>
>>> Ok, I'm lost. There's two different ImageIO's???? One in JAI and one in
>>> the JDK/JRE? Cause I have the latest JRE 5.0_10 installed and there is no
>>> bundled ImageIO. I have to install that separate. Same with the JDK. I
>>> had to install ImageIO separately.
>>>
>>> Could someone please clarify this issue???
>>>
>>> Nidel, Mike wrote:
>>>
>>>> not so.
>>>>
>>>> java-imageio-interest@java.sun.com
>>>>
>>>> this list here is for the JAI ImageIO Tools (jai-imageio.dev.java.net)
>>>> that list is for core Java ImageIO issues.
>>>>
>>>> As far as I know there is no such thing as an "ImageIO version"
>>>> in the public sense, as it would be the same as the JRE in which
>>>> it is bundled.
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: robert engels [mailto:rengels@ix.netcom.com] Sent: Tuesday,
>>>>> January 09, 2007 6:28 PM
>>>>> To: interest@jai-imageio.dev.java.net
>>>>> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version number from an
>>>>> applet?
>>>>>
>>>>>
>>>>> This is the only list I subscribe to, and it covers ImageIO and ImageIO
>>>>> tools... ???
>>>>>
>>>>> On Jan 9, 2007, at 5:21 PM, Nidel, Mike wrote:
>>>>>
>>>>>
>>>>>> aren't we talking about JAI ImageIO tools here and not ImageIO?
>>>>>> otherwise we should probably be on the imageio interest list.
>>>>>>
>>>>>>
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net]
>>>>>>> Sent: Tuesday, January 09, 2007 2:07 PM
>>>>>>> To: interest@jai-imageio.dev.java.net
>>>>>>> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version
>>>>>
>>>>>
>>>>> number from
>>>>>
>>>>>>> an applet?
>>>>>>>
>>>>>>>
>>>>>>> Hi Robert,
>>>>>>>
>>>>>>> Yes, I figure Class.forName() will be used somehow. Knowing that
>>>>>>> ImageIO is installed is easy. Just try one of the static method calls
>>>>>>> in a try/catch block. Knowing what version of ImageIO is installed is
>>>>>>> harder.
>>>>>>>
>>>>>>> I'll post my solution if I figure it out.
>>>>>>>
>>>>>>> robert engels wrote:
>>>>>>>
>>>>>>>> A simple way may be to use several 'Class.forName()' calls to
>>>>>>>> determine what is available.
>>>>>>>>
>>>>>>>> You could also use the ServiceProvider interface.
>>>>>>>>
>>>>>>>> On Jan 9, 2007, at 12:47 PM, Ken Warner wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> Hi Mike,
>>>>>>>>>
>>>>>>>>> You're the first to reply. Thanks.
>>>>>>>>> What I have to do is check the version of ImageIO from an applet
>>>>>>>>> after it starts and before it loads an image. I need to
>>>>>>>
>>>>>>>
>>>>>>> do that so I
>>>>>>>
>>>>>>>>> can tell the user to upgrade ImageIO if he needs to.
>>>>>>>>> Doing this from an applet is tricky. Applets are so
>>>>>>>
>>>>>>>
>>>>>>> restricted in
>>>>>>>
>>>>>>>>> what they can know about the client machine.
>>>>>>>
>>>>>>>
>>>>>>> System.getProperties ()
>>>>>>>
>>>>>>>>> fails in applets. An applet has to ask for specific system
>>>>>>>>> properties by name.
>>>>>>>>>
>>>>>>>>> I think that given the proliferation of Java VM's and related
>>>>>>>>> packages that a simple, universal interface implemented by
>>>>>>>
>>>>>>>
>>>>>>> Class that
>>>>>>>
>>>>>>>>> would let one easily inquire about the version of a
>>>>>>>
>>>>>>>
>>>>>>> particular class
>>>>>>>
>>>>>>>>> would be really useful. I mean SUN is shipping 1.5 and
>>>>>>>
>>>>>>>
>>>>>>> 1.6 at the
>>>>>>>
>>>>>>>>> same time. And I think that ImageIO can be found in
>>>>>>>
>>>>>>>
>>>>>>> several versions.
>>>>>>>
>>>>>>>>> It makes things really difficult for applets that don't
>>>>>
>>>>>
>>>>> know what
>>>>>
>>>>>>>>> kind of environment they are going to open their eyes in.
>>>>>>>>>
>>>>>>>>> I'll run some tests later today and see if your
>>>>>>>
>>>>>>>
>>>>>>> information leads to
>>>>>>>
>>>>>>>>> something useful -- thanks.
>>>>>>>>>
>>>>>>>>> Nidel, Mike wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> did anyone ever reply?
>>>>>>>>>> I believe if you get the Implementation-Version for
>>>>>>>>>> com.sun.media.imageio this should give you the version
>>>>>
>>>>>
>>>>> number. If
>>>>>
>>>>>>>>>> you look in the Manifest for jai_imageio.jar the version is stored
>>>>>>>>>> there. as for how to get the implementation version... I forget. It
>>>>>>>>>> was something
>>>>>>>>>> with the Package object I think, Brian had posted it on the JAI
>>>>>>>>>> interest
>>>>>>>>>> list a few months ago.
>>>>>>>>>> ah, here it is:
>>>>>>>>>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/
>>>>>>>>>> Package.html#getImplem
>>>>>>>>>> entationVersion()
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net] Sent: Sunday,
>>>>>>>>>>> January 07, 2007 8:58 PM
>>>>>>>>>>> To: interest@jai-imageio.dev.java.net
>>>>>>>>>>> Subject: [JAI-IMAGEIO] How do I get ImageIO version
>>>>>>>
>>>>>>>
>>>>>>> number from an
>>>>>>>
>>>>>>>>>>> applet?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Feom an applet, I can detect the JRE / Java version from
>>>>>>>>>>> System.properties() but how do I detect the ImageIO
>>>>>>>
>>>>>>>
>>>>>>> version -- if
>>>>>>>
>>>>>>>>>>> ImageIO is installed?
>>>>>>>>>>>
>>>>>>>>>>> I think I can figure out if ImageIO is installed just by
>>>>>>>
>>>>>>>
>>>>>>> trying to
>>>>>>>
>>>>>>>>>>> use a static method from ImageIO in a try / catch block.
>>>>>>>
>>>>>>>
>>>>>>> But if
>>>>>>>
>>>>>>>>>>> there is a version of ImageIO installed. I think it would be
>>>>>>>>>>> important to know if it is a version current and
>>>>>>>
>>>>>>>
>>>>>>> compatible with
>>>>>>>
>>>>>>>>>>> the installed JRE -- Yes? No?
>>>>>>>>>>>
>>>>>>>>>>> Then I can popup a browser window telling the user where
>>>>>>>
>>>>>>>
>>>>>>> to go and
>>>>>>>
>>>>>>>>>>> how to update his JRE / ImageIO installation.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>
>>>>>>> -------------------------------------------------------------------
>>>>>>>
>>>>>>>>>>> - - 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
>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>>
>>>>>>>>> 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
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>>
>>>>>>> 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
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
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

robert engels

I would NOT like to see the tools as part of the JRE. The Java
download is already larger than need be.

Now if it had automatic downloading of these additional packages when
required... that would be ideal.

Not just for ImageIO...

On Jan 9, 2007, at 6:58 PM, Brian Burkhalter wrote:

> Actually this is more of a bureaucratic artifact. Ideally all of
> the JAI Image I/O Tools stuff would be in Java SE and there would
> not be a separate download. This is unfortunately not allowed for
> various reasons I will not go into. Either that or the plugins
> would be auto-deployed but I will not get involved in that
> discussion either ...
>
> On Tue, 9 Jan 2007, Ken Warner wrote:
>
>> Ok, I understand now. Java is not simple...
>>
>> Brian Burkhalter wrote:
>>> There are in effect two different entities:
>>> 1) Java SE Image I/O
>>> 2) JAI Image I/O Tools
>>> Java SE Image I/O is the javax.imageio packages and supporting
>>> non-public classes and is part of Java SE, hence the JRE and JDK.
>>> It was added as of Java SE 1.4. It defines the javax APIs and
>>> provides plugins to support various image formats. The supported
>>> formats vary as a function of Java SE version.
>>> JAI Image I/O Tools is a set of additional plugins which add
>>> support for formats not handled by Java SE Image I/O, as well as
>>> other capabilities. It is a separate download and must be
>>> separately installed.
>>> On Tue, 9 Jan 2007, Ken Warner wrote:
>>>> Ok, I'm lost. There's two different ImageIO's???? One in JAI
>>>> and one in the JDK/JRE? Cause I have the latest JRE 5.0_10
>>>> installed and there is no bundled ImageIO. I have to install
>>>> that separate. Same with the JDK. I had to install ImageIO
>>>> separately.
>>>> Could someone please clarify this issue???
>>>> Nidel, Mike wrote:
>>>>> not so.
>>>>> java-imageio-interest@java.sun.com
>>>>> this list here is for the JAI ImageIO Tools (jai-
>>>>> imageio.dev.java.net)
>>>>> that list is for core Java ImageIO issues.
>>>>> As far as I know there is no such thing as an "ImageIO version"
>>>>> in the public sense, as it would be the same as the JRE in which
>>>>> it is bundled.
>>>>>> -----Original Message-----
>>>>>> From: robert engels [mailto:rengels@ix.netcom.com] Sent:
>>>>>> Tuesday, January 09, 2007 6:28 PM
>>>>>> To: interest@jai-imageio.dev.java.net
>>>>>> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version number
>>>>>> from an applet?
>>>>>> This is the only list I subscribe to, and it covers ImageIO
>>>>>> and ImageIO tools... ???
>>>>>> On Jan 9, 2007, at 5:21 PM, Nidel, Mike wrote:
>>>>>>> aren't we talking about JAI ImageIO tools here and not
>>>>>>> ImageIO? otherwise we should probably be on the imageio
>>>>>>> interest list.
>>>>>>>> -----Original Message-----
>>>>>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net]
>>>>>>>> Sent: Tuesday, January 09, 2007 2:07 PM
>>>>>>>> To: interest@jai-imageio.dev.java.net
>>>>>>>> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version
>>>>>> number from
>>>>>>>> an applet?
>>>>>>>> Hi Robert,
>>>>>>>> Yes, I figure Class.forName() will be used somehow. Knowing
>>>>>>>> that ImageIO is installed is easy. Just try one of the
>>>>>>>> static method calls in a try/catch block. Knowing what
>>>>>>>> version of ImageIO is installed is harder.
>>>>>>>> I'll post my solution if I figure it out.
>>>>>>>> robert engels wrote:
>>>>>>>>> A simple way may be to use several 'Class.forName()' calls
>>>>>>>>> to determine what is available.
>>>>>>>>> You could also use the ServiceProvider interface.
>>>>>>>>> On Jan 9, 2007, at 12:47 PM, Ken Warner wrote:
>>>>>>>>>> Hi Mike,
>>>>>>>>>> You're the first to reply. Thanks.
>>>>>>>>>> What I have to do is check the version of ImageIO from an
>>>>>>>>>> applet after it starts and before it loads an image. I
>>>>>>>>>> need to
>>>>>>>> do that so I
>>>>>>>>>> can tell the user to upgrade ImageIO if he needs to.
>>>>>>>>>> Doing this from an applet is tricky. Applets are so
>>>>>>>> restricted in
>>>>>>>>>> what they can know about the client machine.
>>>>>>>> System.getProperties ()
>>>>>>>>>> fails in applets. An applet has to ask for specific
>>>>>>>>>> system properties by name.
>>>>>>>>>> I think that given the proliferation of Java VM's and
>>>>>>>>>> related packages that a simple, universal interface
>>>>>>>>>> implemented by
>>>>>>>> Class that
>>>>>>>>>> would let one easily inquire about the version of a
>>>>>>>> particular class
>>>>>>>>>> would be really useful. I mean SUN is shipping 1.5 and
>>>>>>>> 1.6 at the
>>>>>>>>>> same time. And I think that ImageIO can be found in
>>>>>>>> several versions.
>>>>>>>>>> It makes things really difficult for applets that don't
>>>>>> know what
>>>>>>>>>> kind of environment they are going to open their eyes in.
>>>>>>>>>> I'll run some tests later today and see if your
>>>>>>>> information leads to
>>>>>>>>>> something useful -- thanks.
>>>>>>>>>> Nidel, Mike wrote:
>>>>>>>>>>> did anyone ever reply?
>>>>>>>>>>> I believe if you get the Implementation-Version for
>>>>>>>>>>> com.sun.media.imageio this should give you the version
>>>>>> number. If
>>>>>>>>>>> you look in the Manifest for jai_imageio.jar the version
>>>>>>>>>>> is stored there. as for how to get the implementation
>>>>>>>>>>> version... I forget. It was something
>>>>>>>>>>> with the Package object I think, Brian had posted it on
>>>>>>>>>>> the JAI
>>>>>>>>>>> interest
>>>>>>>>>>> list a few months ago.
>>>>>>>>>>> ah, here it is:
>>>>>>>>>>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/
>>>>>>>>>>> Package.html#getImplem
>>>>>>>>>>> entationVersion()
>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net] Sent:
>>>>>>>>>>>> Sunday, January 07, 2007 8:58 PM
>>>>>>>>>>>> To: interest@jai-imageio.dev.java.net
>>>>>>>>>>>> Subject: [JAI-IMAGEIO] How do I get ImageIO version
>>>>>>>> number from an
>>>>>>>>>>>> applet?
>>>>>>>>>>>> Feom an applet, I can detect the JRE / Java version from
>>>>>>>>>>>> System.properties() but how do I detect the ImageIO
>>>>>>>> version -- if
>>>>>>>>>>>> ImageIO is installed?
>>>>>>>>>>>> I think I can figure out if ImageIO is installed just by
>>>>>>>> trying to
>>>>>>>>>>>> use a static method from ImageIO in a try / catch block.
>>>>>>>> But if
>>>>>>>>>>>> there is a version of ImageIO installed. I think it
>>>>>>>>>>>> would be important to know if it is a version current and
>>>>>>>> compatible with
>>>>>>>>>>>> the installed JRE -- Yes? No?
>>>>>>>>>>>> Then I can popup a browser window telling the user where
>>>>>>>> to go and
>>>>>>>>>>>> how to update his JRE / ImageIO installation.
>>>>>>>> ---------------------------------------------------------------
>>>>>>>> ----
>>>>>>>>>>>> - - 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
>>>>>> -----------------------------------------------------------------
>>>>>> ----
>>>>>>>>>> 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
>>>>>> -----------------------------------------------------------------
>>>>>> ----
>>>>>>>> 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
>>>>>> -----------------------------------------------------------------
>>>>>> ----
>>>>>> 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
>>>> -------------------------------------------------------------------
>>>> --
>>>> 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
> 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

Nidel, Mike

not so.

java-imageio-interest@java.sun.com

this list here is for the JAI ImageIO Tools (jai-imageio.dev.java.net)
that list is for core Java ImageIO issues.

As far as I know there is no such thing as an "ImageIO version"
in the public sense, as it would be the same as the JRE in which
it is bundled.

> -----Original Message-----
> From: robert engels [mailto:rengels@ix.netcom.com]
> Sent: Tuesday, January 09, 2007 6:28 PM
> To: interest@jai-imageio.dev.java.net
> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version
> number from an applet?
>
>
> This is the only list I subscribe to, and it covers ImageIO and
> ImageIO tools... ???
>
> On Jan 9, 2007, at 5:21 PM, Nidel, Mike wrote:
>
> > aren't we talking about JAI ImageIO tools here and not ImageIO?
> > otherwise we should probably be on the imageio interest list.
> >
> >
> >> -----Original Message-----
> >> From: Ken Warner [mailto:kwarner@uneedspeed.net]
> >> Sent: Tuesday, January 09, 2007 2:07 PM
> >> To: interest@jai-imageio.dev.java.net
> >> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version
> number from
> >> an applet?
> >>
> >>
> >> Hi Robert,
> >>
> >> Yes, I figure Class.forName() will be used somehow. Knowing that
> >> ImageIO is installed is easy. Just try one of the static method
> >> calls in a try/catch block. Knowing what version of ImageIO is
> >> installed is harder.
> >>
> >> I'll post my solution if I figure it out.
> >>
> >> robert engels wrote:
> >>> A simple way may be to use several 'Class.forName()' calls to
> >>> determine what is available.
> >>>
> >>> You could also use the ServiceProvider interface.
> >>>
> >>> On Jan 9, 2007, at 12:47 PM, Ken Warner wrote:
> >>>
> >>>> Hi Mike,
> >>>>
> >>>> You're the first to reply. Thanks.
> >>>> What I have to do is check the version of ImageIO from an applet
> >>>> after it starts and before it loads an image. I need to
> >> do that so I
> >>>> can tell the user to upgrade ImageIO if he needs to.
> >>>> Doing this from an applet is tricky. Applets are so
> >> restricted in
> >>>> what they can know about the client machine.
> >> System.getProperties ()
> >>>> fails in applets. An applet has to ask for specific system
> >>>> properties by name.
> >>>>
> >>>> I think that given the proliferation of Java VM's and related
> >>>> packages that a simple, universal interface implemented by
> >> Class that
> >>>> would let one easily inquire about the version of a
> >> particular class
> >>>> would be really useful. I mean SUN is shipping 1.5 and
> >> 1.6 at the
> >>>> same time. And I think that ImageIO can be found in
> >> several versions.
> >>>>
> >>>> It makes things really difficult for applets that don't
> know what
> >>>> kind of environment they are going to open their eyes in.
> >>>>
> >>>> I'll run some tests later today and see if your
> >> information leads to
> >>>> something useful -- thanks.
> >>>>
> >>>> Nidel, Mike wrote:
> >>>>
> >>>>> did anyone ever reply?
> >>>>> I believe if you get the Implementation-Version for
> >>>>> com.sun.media.imageio this should give you the version
> number. If
> >>>>> you look in the Manifest for jai_imageio.jar the version is
> >>>>> stored there. as for how to get the implementation version... I
> >>>>> forget. It was something
> >>>>> with the Package object I think, Brian had posted it on the JAI
> >>>>> interest
> >>>>> list a few months ago.
> >>>>> ah, here it is:
> >>>>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/
> >>>>> Package.html#getImplem
> >>>>> entationVersion()
> >>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net] Sent: Sunday,
> >>>>>> January 07, 2007 8:58 PM
> >>>>>> To: interest@jai-imageio.dev.java.net
> >>>>>> Subject: [JAI-IMAGEIO] How do I get ImageIO version
> >> number from an
> >>>>>> applet?
> >>>>>>
> >>>>>>
> >>>>>> Feom an applet, I can detect the JRE / Java version from
> >>>>>> System.properties() but how do I detect the ImageIO
> >> version -- if
> >>>>>> ImageIO is installed?
> >>>>>>
> >>>>>> I think I can figure out if ImageIO is installed just by
> >> trying to
> >>>>>> use a static method from ImageIO in a try / catch block.
> >> But if
> >>>>>> there is a version of ImageIO installed. I think it would be
> >>>>>> important to know if it is a version current and
> >> compatible with
> >>>>>> the installed JRE -- Yes? No?
> >>>>>>
> >>>>>> Then I can popup a browser window telling the user where
> >> to go and
> >>>>>> how to update his JRE / ImageIO installation.
> >>>>>>
> >>>>>>
> >> -------------------------------------------------------------------
> >>>>>> - - 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
> >>>>
> >>>>
> >>>>
> >>
> ---------------------------------------------------------------------
> >>>> 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
> >>>
> >>>
> >>>
> >>
> >>
> ---------------------------------------------------------------------
> >> 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
> >
>
> ---------------------------------------------------------------------
> 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 Tue, 9 Jan 2007, Nidel, Mike wrote:

> not so.
>
> java-imageio-interest@java.sun.com
>
> this list here is for the JAI ImageIO Tools (jai-imageio.dev.java.net)
> that list is for core Java ImageIO issues.

Correct, although many core ImageIO questions may be answerable on this list.

> As far as I know there is no such thing as an "ImageIO version"
> in the public sense, as it would be the same as the JRE in which
> it is bundled.

Also correct.

>> -----Original Message-----
>> From: robert engels [mailto:rengels@ix.netcom.com]
>> Sent: Tuesday, January 09, 2007 6:28 PM
>> To: interest@jai-imageio.dev.java.net
>> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version
>> number from an applet?
>>
>>
>> This is the only list I subscribe to, and it covers ImageIO and
>> ImageIO tools... ???
>>
>> On Jan 9, 2007, at 5:21 PM, Nidel, Mike wrote:
>>
>>> aren't we talking about JAI ImageIO tools here and not ImageIO?
>>> otherwise we should probably be on the imageio interest list.
>>>
>>>
>>>> -----Original Message-----
>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net]
>>>> Sent: Tuesday, January 09, 2007 2:07 PM
>>>> To: interest@jai-imageio.dev.java.net
>>>> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version
>> number from
>>>> an applet?
>>>>
>>>>
>>>> Hi Robert,
>>>>
>>>> Yes, I figure Class.forName() will be used somehow. Knowing that
>>>> ImageIO is installed is easy. Just try one of the static method
>>>> calls in a try/catch block. Knowing what version of ImageIO is
>>>> installed is harder.
>>>>
>>>> I'll post my solution if I figure it out.
>>>>
>>>> robert engels wrote:
>>>>> A simple way may be to use several 'Class.forName()' calls to
>>>>> determine what is available.
>>>>>
>>>>> You could also use the ServiceProvider interface.
>>>>>
>>>>> On Jan 9, 2007, at 12:47 PM, Ken Warner wrote:
>>>>>
>>>>>> Hi Mike,
>>>>>>
>>>>>> You're the first to reply. Thanks.
>>>>>> What I have to do is check the version of ImageIO from an applet
>>>>>> after it starts and before it loads an image. I need to
>>>> do that so I
>>>>>> can tell the user to upgrade ImageIO if he needs to.
>>>>>> Doing this from an applet is tricky. Applets are so
>>>> restricted in
>>>>>> what they can know about the client machine.
>>>> System.getProperties ()
>>>>>> fails in applets. An applet has to ask for specific system
>>>>>> properties by name.
>>>>>>
>>>>>> I think that given the proliferation of Java VM's and related
>>>>>> packages that a simple, universal interface implemented by
>>>> Class that
>>>>>> would let one easily inquire about the version of a
>>>> particular class
>>>>>> would be really useful. I mean SUN is shipping 1.5 and
>>>> 1.6 at the
>>>>>> same time. And I think that ImageIO can be found in
>>>> several versions.
>>>>>>
>>>>>> It makes things really difficult for applets that don't
>> know what
>>>>>> kind of environment they are going to open their eyes in.
>>>>>>
>>>>>> I'll run some tests later today and see if your
>>>> information leads to
>>>>>> something useful -- thanks.
>>>>>>
>>>>>> Nidel, Mike wrote:
>>>>>>
>>>>>>> did anyone ever reply?
>>>>>>> I believe if you get the Implementation-Version for
>>>>>>> com.sun.media.imageio this should give you the version
>> number. If
>>>>>>> you look in the Manifest for jai_imageio.jar the version is
>>>>>>> stored there. as for how to get the implementation version... I
>>>>>>> forget. It was something
>>>>>>> with the Package object I think, Brian had posted it on the JAI
>>>>>>> interest
>>>>>>> list a few months ago.
>>>>>>> ah, here it is:
>>>>>>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/
>>>>>>> Package.html#getImplem
>>>>>>> entationVersion()
>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net] Sent: Sunday,
>>>>>>>> January 07, 2007 8:58 PM
>>>>>>>> To: interest@jai-imageio.dev.java.net
>>>>>>>> Subject: [JAI-IMAGEIO] How do I get ImageIO version
>>>> number from an
>>>>>>>> applet?
>>>>>>>>
>>>>>>>>
>>>>>>>> Feom an applet, I can detect the JRE / Java version from
>>>>>>>> System.properties() but how do I detect the ImageIO
>>>> version -- if
>>>>>>>> ImageIO is installed?
>>>>>>>>
>>>>>>>> I think I can figure out if ImageIO is installed just by
>>>> trying to
>>>>>>>> use a static method from ImageIO in a try / catch block.
>>>> But if
>>>>>>>> there is a version of ImageIO installed. I think it would be
>>>>>>>> important to know if it is a version current and
>>>> compatible with
>>>>>>>> the installed JRE -- Yes? No?
>>>>>>>>
>>>>>>>> Then I can popup a browser window telling the user where
>>>> to go and
>>>>>>>> how to update his JRE / ImageIO installation.
>>>>>>>>
>>>>>>>>
>>>> -------------------------------------------------------------------
>>>>>>>> - - 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
>>>>>>
>>>>>>
>>>>>>
>>>>
>> ---------------------------------------------------------------------
>>>>>> 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
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>> ---------------------------------------------------------------------
>>>> 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
>>>
>>
>> ---------------------------------------------------------------------
>> 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
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

Nidel, Mike

aren't we talking about JAI ImageIO tools here and not ImageIO?
otherwise we should probably be on the imageio interest list.

> -----Original Message-----
> From: Ken Warner [mailto:kwarner@uneedspeed.net]
> Sent: Tuesday, January 09, 2007 2:07 PM
> To: interest@jai-imageio.dev.java.net
> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version
> number from an applet?
>
>
> Hi Robert,
>
> Yes, I figure Class.forName() will be used somehow. Knowing
> that ImageIO is installed is easy. Just try one of the
> static method calls in a try/catch block. Knowing what
> version of ImageIO is installed is harder.
>
> I'll post my solution if I figure it out.
>
> robert engels wrote:
> > A simple way may be to use several 'Class.forName()' calls to
> > determine
> > what is available.
> >
> > You could also use the ServiceProvider interface.
> >
> > On Jan 9, 2007, at 12:47 PM, Ken Warner wrote:
> >
> >> Hi Mike,
> >>
> >> You're the first to reply. Thanks.
> >> What I have to do is check the version of ImageIO from an applet
> >> after it starts and before it loads an image. I need to
> do that so I
> >> can tell the user to upgrade ImageIO if he needs to.
> >> Doing this from an applet is tricky. Applets are so
> restricted in
> >> what they can know about the client machine.
> System.getProperties ()
> >> fails in applets. An applet has to ask for specific system
> >> properties by name.
> >>
> >> I think that given the proliferation of Java VM's and related
> >> packages that a simple, universal interface implemented by
> Class that
> >> would let one easily inquire about the version of a
> particular class
> >> would be really useful. I mean SUN is shipping 1.5 and
> 1.6 at the
> >> same time. And I think that ImageIO can be found in
> several versions.
> >>
> >> It makes things really difficult for applets that don't know what
> >> kind of environment they are going to open their eyes in.
> >>
> >> I'll run some tests later today and see if your
> information leads to
> >> something useful -- thanks.
> >>
> >> Nidel, Mike wrote:
> >>
> >>> did anyone ever reply?
> >>> I believe if you get the Implementation-Version for
> >>> com.sun.media.imageio this should give you the version number. If
> >>> you look in the Manifest for
> >>> jai_imageio.jar the version is stored there.
> >>> as for how to get the implementation version... I forget. It was
> >>> something
> >>> with the Package object I think, Brian had posted it on the JAI
> >>> interest
> >>> list a few months ago.
> >>> ah, here it is:
> >>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/
> >>> Package.html#getImplem
> >>> entationVersion()
> >>>
> >>>> -----Original Message-----
> >>>> From: Ken Warner [mailto:kwarner@uneedspeed.net] Sent: Sunday,
> >>>> January 07, 2007 8:58 PM
> >>>> To: interest@jai-imageio.dev.java.net
> >>>> Subject: [JAI-IMAGEIO] How do I get ImageIO version
> number from an
> >>>> applet?
> >>>>
> >>>>
> >>>> Feom an applet, I can detect the JRE / Java version from
> >>>> System.properties() but how do I detect the ImageIO
> version -- if
> >>>> ImageIO is installed?
> >>>>
> >>>> I think I can figure out if ImageIO is installed just by
> trying to
> >>>> use a static method from ImageIO in a try / catch block.
> But if
> >>>> there is a version of ImageIO installed. I think it would be
> >>>> important to know if it is a version current and
> compatible with
> >>>> the installed JRE -- Yes? No?
> >>>>
> >>>> Then I can popup a browser window telling the user where
> to go and
> >>>> how to update his JRE / ImageIO installation.
> >>>>
> >>>>
> -------------------------------------------------------------------
> >>>> - - 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
> >>
> >>
> >>
> ---------------------------------------------------------------------
> >> 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
> >
> >
> >
>
> ---------------------------------------------------------------------
> 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

robert engels

This is the only list I subscribe to, and it covers ImageIO and
ImageIO tools... ???

On Jan 9, 2007, at 5:21 PM, Nidel, Mike wrote:

> aren't we talking about JAI ImageIO tools here and not ImageIO?
> otherwise we should probably be on the imageio interest list.
>
>
>> -----Original Message-----
>> From: Ken Warner [mailto:kwarner@uneedspeed.net]
>> Sent: Tuesday, January 09, 2007 2:07 PM
>> To: interest@jai-imageio.dev.java.net
>> Subject: Re: [JAI-IMAGEIO] How do I get ImageIO version
>> number from an applet?
>>
>>
>> Hi Robert,
>>
>> Yes, I figure Class.forName() will be used somehow. Knowing
>> that ImageIO is installed is easy. Just try one of the
>> static method calls in a try/catch block. Knowing what
>> version of ImageIO is installed is harder.
>>
>> I'll post my solution if I figure it out.
>>
>> robert engels wrote:
>>> A simple way may be to use several 'Class.forName()' calls to
>>> determine
>>> what is available.
>>>
>>> You could also use the ServiceProvider interface.
>>>
>>> On Jan 9, 2007, at 12:47 PM, Ken Warner wrote:
>>>
>>>> Hi Mike,
>>>>
>>>> You're the first to reply. Thanks.
>>>> What I have to do is check the version of ImageIO from an applet
>>>> after it starts and before it loads an image. I need to
>> do that so I
>>>> can tell the user to upgrade ImageIO if he needs to.
>>>> Doing this from an applet is tricky. Applets are so
>> restricted in
>>>> what they can know about the client machine.
>> System.getProperties ()
>>>> fails in applets. An applet has to ask for specific system
>>>> properties by name.
>>>>
>>>> I think that given the proliferation of Java VM's and related
>>>> packages that a simple, universal interface implemented by
>> Class that
>>>> would let one easily inquire about the version of a
>> particular class
>>>> would be really useful. I mean SUN is shipping 1.5 and
>> 1.6 at the
>>>> same time. And I think that ImageIO can be found in
>> several versions.
>>>>
>>>> It makes things really difficult for applets that don't know what
>>>> kind of environment they are going to open their eyes in.
>>>>
>>>> I'll run some tests later today and see if your
>> information leads to
>>>> something useful -- thanks.
>>>>
>>>> Nidel, Mike wrote:
>>>>
>>>>> did anyone ever reply?
>>>>> I believe if you get the Implementation-Version for
>>>>> com.sun.media.imageio this should give you the version number. If
>>>>> you look in the Manifest for
>>>>> jai_imageio.jar the version is stored there.
>>>>> as for how to get the implementation version... I forget. It was
>>>>> something
>>>>> with the Package object I think, Brian had posted it on the JAI
>>>>> interest
>>>>> list a few months ago.
>>>>> ah, here it is:
>>>>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/
>>>>> Package.html#getImplem
>>>>> entationVersion()
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net] Sent: Sunday,
>>>>>> January 07, 2007 8:58 PM
>>>>>> To: interest@jai-imageio.dev.java.net
>>>>>> Subject: [JAI-IMAGEIO] How do I get ImageIO version
>> number from an
>>>>>> applet?
>>>>>>
>>>>>>
>>>>>> Feom an applet, I can detect the JRE / Java version from
>>>>>> System.properties() but how do I detect the ImageIO
>> version -- if
>>>>>> ImageIO is installed?
>>>>>>
>>>>>> I think I can figure out if ImageIO is installed just by
>> trying to
>>>>>> use a static method from ImageIO in a try / catch block.
>> But if
>>>>>> there is a version of ImageIO installed. I think it would be
>>>>>> important to know if it is a version current and
>> compatible with
>>>>>> the installed JRE -- Yes? No?
>>>>>>
>>>>>> Then I can popup a browser window telling the user where
>> to go and
>>>>>> how to update his JRE / ImageIO installation.
>>>>>>
>>>>>>
>> -------------------------------------------------------------------
>>>>>> - - 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
>>>>
>>>>
>>>>
>> ---------------------------------------------------------------------
>>>> 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
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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
>

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

Nidel, Mike

did anyone ever reply?

I believe if you get the Implementation-Version for
com.sun.media.imageio
this should give you the version number. If you look in the Manifest for
jai_imageio.jar the version is stored there.

as for how to get the implementation version... I forget. It was
something
with the Package object I think, Brian had posted it on the JAI interest
list a few months ago.

ah, here it is:

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Package.html#getImplem
entationVersion()

> -----Original Message-----
> From: Ken Warner [mailto:kwarner@uneedspeed.net]
> Sent: Sunday, January 07, 2007 8:58 PM
> To: interest@jai-imageio.dev.java.net
> Subject: [JAI-IMAGEIO] How do I get ImageIO version number
> from an applet?
>
>
> Feom an applet, I can detect the JRE / Java version from
> System.properties() but how do I detect the ImageIO version
> -- if ImageIO is installed?
>
> I think I can figure out if ImageIO is installed just by
> trying to use a static method from ImageIO in a try / catch
> block. But if there is a version of ImageIO installed. I
> think it would be important to know if it is a version
> current and compatible with the installed JRE -- Yes? No?
>
> Then I can popup a browser window telling the user where to
> go and how to update his JRE / ImageIO installation.
>
> ---------------------------------------------------------------------
> 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

Ken Warner

Hi Mike,

You're the first to reply. Thanks.

What I have to do is check the version of ImageIO from an applet after it starts and before it loads an image. I need to do that so I can tell the user to upgrade ImageIO if he needs to.

Doing this from an applet is tricky. Applets are so restricted in what they can know about the client machine. System.getProperties() fails in applets. An applet has to ask for specific system properties by name.

I think that given the proliferation of Java VM's and related packages that a simple, universal interface implemented by Class that would let one easily inquire about the version of a particular class would be really useful. I mean SUN is shipping 1.5 and 1.6 at the same time. And I think that ImageIO can be found in several versions.

It makes things really difficult for applets that don't know what kind of environment they are going to open their eyes in.

I'll run some tests later today and see if your information leads to something useful -- thanks.

Nidel, Mike wrote:
> did anyone ever reply?
>
> I believe if you get the Implementation-Version for
> com.sun.media.imageio
> this should give you the version number. If you look in the Manifest for
> jai_imageio.jar the version is stored there.
>
> as for how to get the implementation version... I forget. It was
> something
> with the Package object I think, Brian had posted it on the JAI interest
> list a few months ago.
>
> ah, here it is:
>
> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Package.html#getImplem
> entationVersion()
>
>
>>-----Original Message-----
>>From: Ken Warner [mailto:kwarner@uneedspeed.net]
>>Sent: Sunday, January 07, 2007 8:58 PM
>>To: interest@jai-imageio.dev.java.net
>>Subject: [JAI-IMAGEIO] How do I get ImageIO version number
>>from an applet?
>>
>>
>>Feom an applet, I can detect the JRE / Java version from
>>System.properties() but how do I detect the ImageIO version
>>-- if ImageIO is installed?
>>
>>I think I can figure out if ImageIO is installed just by
>>trying to use a static method from ImageIO in a try / catch
>>block. But if there is a version of ImageIO installed. I
>>think it would be important to know if it is a version
>>current and compatible with the installed JRE -- Yes? No?
>>
>>Then I can popup a browser window telling the user where to
>>go and how to update his JRE / ImageIO installation.
>>
>>---------------------------------------------------------------------
>>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
>
>
>

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

robert engels

A simple way may be to use several 'Class.forName()' calls to
determine what is available.

You could also use the ServiceProvider interface.

On Jan 9, 2007, at 12:47 PM, Ken Warner wrote:

> Hi Mike,
>
> You're the first to reply. Thanks.
> What I have to do is check the version of ImageIO from an applet
> after it starts and before it loads an image. I need to do that so
> I can tell the user to upgrade ImageIO if he needs to.
> Doing this from an applet is tricky. Applets are so restricted in
> what they can know about the client machine. System.getProperties
> () fails in applets. An applet has to ask for specific system
> properties by name.
>
> I think that given the proliferation of Java VM's and related
> packages that a simple, universal interface implemented by Class
> that would let one easily inquire about the version of a particular
> class would be really useful. I mean SUN is shipping 1.5 and 1.6
> at the same time. And I think that ImageIO can be found in several
> versions.
>
> It makes things really difficult for applets that don't know what
> kind of environment they are going to open their eyes in.
>
> I'll run some tests later today and see if your information leads
> to something useful -- thanks.
>
> Nidel, Mike wrote:
>> did anyone ever reply?
>> I believe if you get the Implementation-Version for
>> com.sun.media.imageio
>> this should give you the version number. If you look in the
>> Manifest for
>> jai_imageio.jar the version is stored there.
>> as for how to get the implementation version... I forget. It was
>> something
>> with the Package object I think, Brian had posted it on the JAI
>> interest
>> list a few months ago.
>> ah, here it is:
>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/
>> Package.html#getImplem
>> entationVersion()
>>> -----Original Message-----
>>> From: Ken Warner [mailto:kwarner@uneedspeed.net] Sent: Sunday,
>>> January 07, 2007 8:58 PM
>>> To: interest@jai-imageio.dev.java.net
>>> Subject: [JAI-IMAGEIO] How do I get ImageIO version number from
>>> an applet?
>>>
>>>
>>> Feom an applet, I can detect the JRE / Java version from
>>> System.properties() but how do I detect the ImageIO version -- if
>>> ImageIO is installed?
>>>
>>> I think I can figure out if ImageIO is installed just by trying
>>> to use a static method from ImageIO in a try / catch block. But
>>> if there is a version of ImageIO installed. I think it would be
>>> important to know if it is a version current and compatible with
>>> the installed JRE -- Yes? No?
>>>
>>> Then I can popup a browser window telling the user where to go
>>> and how to update his JRE / ImageIO installation.
>>>
>>> --------------------------------------------------------------------
>>> -
>>> 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
>
> ---------------------------------------------------------------------
> 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

Ken Warner

Hi Robert,

Yes, I figure Class.forName() will be used somehow. Knowing that ImageIO is installed is easy. Just try one of the static method calls in a try/catch block. Knowing what version of ImageIO is installed is harder.

I'll post my solution if I figure it out.

robert engels wrote:
> A simple way may be to use several 'Class.forName()' calls to determine
> what is available.
>
> You could also use the ServiceProvider interface.
>
> On Jan 9, 2007, at 12:47 PM, Ken Warner wrote:
>
>> Hi Mike,
>>
>> You're the first to reply. Thanks.
>> What I have to do is check the version of ImageIO from an applet
>> after it starts and before it loads an image. I need to do that so I
>> can tell the user to upgrade ImageIO if he needs to.
>> Doing this from an applet is tricky. Applets are so restricted in
>> what they can know about the client machine. System.getProperties ()
>> fails in applets. An applet has to ask for specific system
>> properties by name.
>>
>> I think that given the proliferation of Java VM's and related
>> packages that a simple, universal interface implemented by Class that
>> would let one easily inquire about the version of a particular class
>> would be really useful. I mean SUN is shipping 1.5 and 1.6 at the
>> same time. And I think that ImageIO can be found in several versions.
>>
>> It makes things really difficult for applets that don't know what
>> kind of environment they are going to open their eyes in.
>>
>> I'll run some tests later today and see if your information leads to
>> something useful -- thanks.
>>
>> Nidel, Mike wrote:
>>
>>> did anyone ever reply?
>>> I believe if you get the Implementation-Version for
>>> com.sun.media.imageio
>>> this should give you the version number. If you look in the Manifest
>>> for
>>> jai_imageio.jar the version is stored there.
>>> as for how to get the implementation version... I forget. It was
>>> something
>>> with the Package object I think, Brian had posted it on the JAI
>>> interest
>>> list a few months ago.
>>> ah, here it is:
>>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/
>>> Package.html#getImplem
>>> entationVersion()
>>>
>>>> -----Original Message-----
>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net] Sent: Sunday,
>>>> January 07, 2007 8:58 PM
>>>> To: interest@jai-imageio.dev.java.net
>>>> Subject: [JAI-IMAGEIO] How do I get ImageIO version number from an
>>>> applet?
>>>>
>>>>
>>>> Feom an applet, I can detect the JRE / Java version from
>>>> System.properties() but how do I detect the ImageIO version -- if
>>>> ImageIO is installed?
>>>>
>>>> I think I can figure out if ImageIO is installed just by trying to
>>>> use a static method from ImageIO in a try / catch block. But if
>>>> there is a version of ImageIO installed. I think it would be
>>>> important to know if it is a version current and compatible with
>>>> the installed JRE -- Yes? No?
>>>>
>>>> Then I can popup a browser window telling the user where to go and
>>>> how to update his JRE / ImageIO installation.
>>>>
>>>> -------------------------------------------------------------------- -
>>>> 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
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>

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

robert engels

Once you know ImageIO is installed, you can then use the service
provider interface to determine the version.

Like this:

Package p = ImageIO.class.getPackage();
return p.getImplementationVersion();

On Jan 9, 2007, at 1:06 PM, Ken Warner wrote:

> Hi Robert,
>
> Yes, I figure Class.forName() will be used somehow. Knowing that
> ImageIO is installed is easy. Just try one of the static method
> calls in a try/catch block. Knowing what version of ImageIO is
> installed is harder.
> I'll post my solution if I figure it out.
>
> robert engels wrote:
>> A simple way may be to use several 'Class.forName()' calls to
>> determine what is available.
>> You could also use the ServiceProvider interface.
>> On Jan 9, 2007, at 12:47 PM, Ken Warner wrote:
>>> Hi Mike,
>>>
>>> You're the first to reply. Thanks.
>>> What I have to do is check the version of ImageIO from an applet
>>> after it starts and before it loads an image. I need to do that
>>> so I can tell the user to upgrade ImageIO if he needs to.
>>> Doing this from an applet is tricky. Applets are so restricted
>>> in what they can know about the client machine.
>>> System.getProperties () fails in applets. An applet has to ask
>>> for specific system properties by name.
>>>
>>> I think that given the proliferation of Java VM's and related
>>> packages that a simple, universal interface implemented by Class
>>> that would let one easily inquire about the version of a
>>> particular class would be really useful. I mean SUN is shipping
>>> 1.5 and 1.6 at the same time. And I think that ImageIO can be
>>> found in several versions.
>>>
>>> It makes things really difficult for applets that don't know
>>> what kind of environment they are going to open their eyes in.
>>>
>>> I'll run some tests later today and see if your information
>>> leads to something useful -- thanks.
>>>
>>> Nidel, Mike wrote:
>>>
>>>> did anyone ever reply?
>>>> I believe if you get the Implementation-Version for
>>>> com.sun.media.imageio
>>>> this should give you the version number. If you look in the
>>>> Manifest for
>>>> jai_imageio.jar the version is stored there.
>>>> as for how to get the implementation version... I forget. It was
>>>> something
>>>> with the Package object I think, Brian had posted it on the JAI
>>>> interest
>>>> list a few months ago.
>>>> ah, here it is:
>>>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/
>>>> Package.html#getImplem
>>>> entationVersion()
>>>>
>>>>> -----Original Message-----
>>>>> From: Ken Warner [mailto:kwarner@uneedspeed.net] Sent: Sunday,
>>>>> January 07, 2007 8:58 PM
>>>>> To: interest@jai-imageio.dev.java.net
>>>>> Subject: [JAI-IMAGEIO] How do I get ImageIO version number
>>>>> from an applet?
>>>>>
>>>>>
>>>>> Feom an applet, I can detect the JRE / Java version from
>>>>> System.properties() but how do I detect the ImageIO version --
>>>>> if ImageIO is installed?
>>>>>
>>>>> I think I can figure out if ImageIO is installed just by
>>>>> trying to use a static method from ImageIO in a try / catch
>>>>> block. But if there is a version of ImageIO installed. I
>>>>> think it would be important to know if it is a version current
>>>>> and compatible with the installed JRE -- Yes? No?
>>>>>
>>>>> Then I can popup a browser window telling the user where to go
>>>>> and how to update his JRE / ImageIO installation.
>>>>>
>>>>> ------------------------------------------------------------------
>>>>> -- -
>>>>> 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
>>>
>>>
>>> --------------------------------------------------------------------
>>> -
>>> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail: interest-help@jai-
> imageio.dev.java.net
>

[att1.html]

bpb
Offline
Joined: 2004-06-23

For JAI Image I/O Tools (and JAI) the specification and implementation versions are in the Manifest so if you load the Package you can query either of these values from the Package instance.

> Feom an applet, I can detect the JRE / Java version
> from System.properties() but how do I detect the
> ImageIO version -- if ImageIO is installed?
>
> I think I can figure out if ImageIO is installed just
> by trying to use a static method from ImageIO in a
> try / catch block. But if there is a version of
> ImageIO installed. I think it would be important to
> know if it is a version current and compatible with
> the installed JRE -- Yes? No?
>
> Then I can popup a browser window telling the user
> where to go and how to update his JRE / ImageIO
> installation.
>
> ------------------------------------------------------
> ---------------
> To unsubscribe, e-mail:
> interest-unsubscribe@jai-imageio.dev.java.net
> For additional commands, e-mail:
> interest-help@jai-imageio.dev.java.net