F
Fabricio
Hi there,
Just wondering if anybody has managed to load a .dll library file from
within a jar file. (for a Java Native Interface JNI project)
I've tried:
System.load( "c:/dir/jarfile.jar!/package/a.dll" );
System.load( package.ClassName.class.getResource( "a.dll" ).getFile() );
But to no avail...
I don't want to copy the dll to a path that windows recognises c:\windows
or c:\winnt (and use System.loadLibrary( "a.dll" ); ).
I was hoping I could 'gracefully' encapsulate the dll in my jar file.
Thanks in advance
Fabricio
Just wondering if anybody has managed to load a .dll library file from
within a jar file. (for a Java Native Interface JNI project)
I've tried:
System.load( "c:/dir/jarfile.jar!/package/a.dll" );
System.load( package.ClassName.class.getResource( "a.dll" ).getFile() );
But to no avail...
I don't want to copy the dll to a path that windows recognises c:\windows
or c:\winnt (and use System.loadLibrary( "a.dll" ); ).
I was hoping I could 'gracefully' encapsulate the dll in my jar file.
Thanks in advance
Fabricio