I'm fairly new to java. I am trying to get JAI working in my java applet. I've included jai_windows-i586.jar to my libraries, but it still fails. I get these sorts of errors

Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: com/sun/media/jai/codec/SeekableStream
Caused by: java.lang.ClassNotFoundException: com.sun.media.jai.codec.SeekableStream

I've noticed the .jar contains an executable and if I install jai-1_1_3-windows-i586.exe manually from Index of /media/jai/builds/release/1_1_3/ the applet will function fine on whichever PC I have installed it on.

I guess what I want to know is, how can I make so the included jar will install the exe when the applet loads instead of having to manually install it on the pc.

Thank You