Load native libs from inside jar file?

Started by efikkan, March 30, 2010, 01:16:27

Previous topic - Next topic

efikkan

Hi!

I want to load the native lwjgl libraries from my jar file (they are included), does anyone know how to do this?

(Loading them from the same folder as the jar file is no problem.)

Thanks.

broumbroum

System.load() will not work from within a .jar file a.f.a.i.k, you must extract the files before. there's a library path variable read from lwjgl loaders (org.lwjgl.library ?), nevertheless, your native should be unpacked in some of the java.library.path, e.g. the user.home path.