Natives

Started by soxey6, July 13, 2015, 10:32:12

Previous topic - Next topic

soxey6

How would I load the natives if they're in the jar?

Just a quick question. I've done some googling and I'm coming up with very vague results and I'm not quite understanding.

spasi

If you're talking about the maven artifacts, see the SharedLibraryLoader in this sample project.

soxey6

No, i dont use maven (yet). I mean how can load the natives if they're inside my jar?

spasi

You must extract them first, usually to java.io.tmpdir. Which is exactly what the SharedLibraryLoader does.