5 ms·
You can't load a native library from inside the .jar file. Typically things that need them extract them to a temporary location and load them from there - there
by pebers 9y ago
You can't load a native library from inside the .jar file. Typically things that need them extract them to a temporary location and load them from there - there's no standard interface to `dlopen` or similar that lets you load directly from inside a zipfile.
- malkia 9y agoon linux with fuse this could be done (possibly tricky), and on windows there are several ways, but I agree - they are non-standard, hence you are on your own when it doesn't work. I've tried loading dlls from memory (there are several examples on the net) only to understand that there is more to be done (like getting the PDB information correctly loaded, and then some more).
- pjmlp 9y agoBut you can static link them instead. http://openjdk.java.net/jeps/178 http://openjdk.java.net/jeps/178