loading JAI and JIIO native with win 32

Hi!
I’m encoutering problems with loading the JAI and JIIO natives (.dll) libs in my applet. I call System.loadLibrary, which works fine, but when I call Imageio.getWriterMIMETypes(), then console reports:

sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageOutputStreamSpi: Provider com.sun.media.imageioimpl.stream.ChannelImageOutputStreamSpi could not be instantiated: java.lang.IllegalArgumentException: vendorName == null!

WHY? all libs and jar from JAI and JAI-ImageIO are included in the package and I copy the natives .dll into the current workgin directory successfully.
Mac osx does not seem to fail so far with the same libs for ppc (.jnilib) thus I can use ImageIO with no problem…

I’ve been fixing that bug with loading library for the past week-end. Now it works fine for the reason It requires to load up all the dll then call up in a protected way any of the functions using JAI or JIIO before starting the apps.
I can now certify about loading libs with Java on any platform that is quite “squezzy”… :stuck_out_tongue:
You can also see that in the 3rd candidate release of ImageMultiConverter @ sf.net