Skip to main content

dll's??

2 replies [Last post]
airwin
Offline
Joined: 2008-07-03

Hello,

I'm really confused by the way DLL's are used by both imageio and jai. I'm working on Windows XP and I downloaded both sets of jars and dll's, but near as I can tell it doesn't seem to need the dll's. If I don't have a path setup for them it runs fine. Anyone know why this is? Is there any reason why I should use the DLL's?

I purposely tried to make my application blow up by deleting the DLL's, but it just worked fine. I was assuming the DLL's were called by the Java code using JNI and would fail when the DLL's weren't found. But I'm obviously wrong.

thanks!

Message was edited by: airwin

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sburwink
Offline
Joined: 2006-08-10

The dlls have native implementations of some features. If the dll's aren't available, JAI falls back to a pure Java implementation. The main difference between them is performance (the native implemenation being faster in most cases).

airwin
Offline
Joined: 2008-07-03

Ahh I figured something like that. The only bad thing about falling back to a pure java implementation is how can I tell that my environment is setup properly and I'm using the dll's?

thank you very much for the reply by the way! :-)

Message was edited by: airwin