LoadLibrary into a Jar?
I have a application, which is packaged in a JAR file. I would like to include a DLL in the JAR file, which would allow me to invoke native methods using Java Native Interface on Windows systems. How would I go about using the loadLibrary() method to load the DLL from the JAR file? Also how can I get images out of this Jar File... every time I try " URL url = MyClass.class.getResource("myimage.gif")", url = null?
[437 byte] By [
jnibecke] at [2007-9-26 13:57:13]

I have a similar problem, but more seriously,
it's a inconsistency of execute jar file.
My java application will do following tasks: (I have successfully create a jar file)
1.create a a.txt file (in java code)
2.load a dll(Dynamic Linking Library)
3.using native code(c, c++) to create a b.txt file (in native code)
when I:
1.execute from commnad line with "java -jar xxx.jar", the result is correct. (2 files a.txt and
b.txt created)
2.execute from command line with "javaw -jar xxx.jar", the result is correct (2 files ...)
3.execute by double click the jar file, INCORRECT (only 1 file a.txt created)
4.modify file association when double click with "java -jar %1", INCORRECT (NO file created)
Does anyone know what cause these problems?
pls help.