typically, you can load a library like so:
System.loadLibrary ( "my_library" );
If I'm not mistaken, that will load a library called "my_library" (.dll, ...) from either the current directory (if it exists), or by searching the dir's in the system's PATH variable, until it's found...
However, if I wished to load it like so:
System.loadLibrary( getClass().getResource( "my_library.dll" ).getFile() );
Would that work?
P.S. I can't test this myself at the mo..