Skip to main content

Re: [JAI-IMAGEIO] Questions regarding ImageIO

5 replies [Last post]
Anonymous

Correct me, if I'm wrokng, but AFAIK PATH is only working in Windows
environment.
On Unix plattform you have to use LD_LIBRARY_PATH.

Kind regards,
Marco
--
Marco Jacob, PMP
Prisma GmbH, Germany

>I have set the native dlls in PATH environment variable. JAI is not able to
>pick the native libraries. Is there any way to use native acceleration other
>than installing it in JRE folder?
>[Message sent by forum member 'prashanth_kayampady' (prashanth_kayampady)]
>
>http://forums.java.net/jive/thread.jspa?messageID=233397
>
>---------------------------------------------------------------------
>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

Reply viewing options

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

On Fri, 31 Aug 2007, jai-imageio@javadesktop.org wrote:

> Thanks Brian and Jacob. It worked. There was an issue with my ant script. It was resetting PATH variable.

Thanks for the update.

> I have one more question
> Does native acceleration have higher performance over pure java mode?

It is supposed to.

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

Brian Burkhalter

AFAIK PATH on Windows applies to searching for both programs and libraries
whereas on Linux/Unix PATH is for programs and LD_LIBRARY_PATH for libraries.
CLASSPATH on the other hand means the same thing on all systems.

In short, you are not wrong.

On Fri, 31 Aug 2007, mjacob@union06.de wrote:

> Correct me, if I'm wrokng, but AFAIK PATH is only working in Windows
> environment.
> On Unix plattform you have to use LD_LIBRARY_PATH.
>
> Kind regards,
> Marco
> --
> Marco Jacob, PMP
> Prisma GmbH, Germany
>
>> I have set the native dlls in PATH environment variable. JAI is not able to
>> pick the native libraries. Is there any way to use native acceleration other
>> than installing it in JRE folder?
>> [Message sent by forum member 'prashanth_kayampady' (prashanth_kayampady)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=233397
>>
>> ---------------------------------------------------------------------
>> 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

prashanth_kayampady
Offline
Joined: 2007-07-22

Thanks Brian and Jacob. It worked. There was an issue with my ant script. It was resetting PATH variable.

I have one more question
Does native acceleration have higher performance over pure java mode? Any test data available on this?

-Prashanth

Message was edited by: prashanth_kayampady

robert engels

It depend on the image. Sometimes the overhead in making the JNI
calls costs more than the benefit. I think the Java version may be
faster for smaller images.

In most of my testing I have little speed difference (running on a
1.5 JVM) between Java and native. I would assume a 1.6 JVM might even
be faster.

On Aug 31, 2007, at 1:15 PM, jai-imageio@javadesktop.org wrote:

> Thanks Brian and Jacob. It worked. There was an issue with my ant
> script. It was resetting PATH variable.
>
> I have one more question
> Does native acceleration have higher performance over pure java mode?
>
> -Prashanth
> [Message sent by forum member
> 'prashanth_kayampady' (prashanth_kayampady)]
>
> http://forums.java.net/jive/thread.jspa?messageID=233504
>
> ---------------------------------------------------------------------
> 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 Fri, 31 Aug 2007, robert engels wrote:

> It depend on the image. Sometimes the overhead in making the JNI calls costs
> more than the benefit. I think the Java version may be faster for smaller
> images.

I agree.

> In most of my testing I have little speed difference (running on a 1.5 JVM)
> between Java and native. I would assume a 1.6 JVM might even be faster.

It also depends on the OS/processor.

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