P
Philipp Kraus
Hello,
is there a way to load a DLL library that is stored within a Jar?
At the time I'm using the -Djava.library.path flag but I would like
to store the DLL within the Jar and added the path dynamically.
I've found some information about this eg extract the DLL to the
temp directory and set the -D option on the main-method.
Can I set also the library path to the java command like the classpath
argument? My java classes use the a
static { System.loadLibrary("dllname"); }
to load the library, so can I add on the static attribute a call for loading
the dll within the jar?
Thanks
Phil
is there a way to load a DLL library that is stored within a Jar?
At the time I'm using the -Djava.library.path flag but I would like
to store the DLL within the Jar and added the path dynamically.
I've found some information about this eg extract the DLL to the
temp directory and set the -D option on the main-method.
Can I set also the library path to the java command like the classpath
argument? My java classes use the a
static { System.loadLibrary("dllname"); }
to load the library, so can I add on the static attribute a call for loading
the dll within the jar?
Thanks
Phil