LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: efikkan on March 30, 2010, 01:16:27

Title: Load native libs from inside jar file?
Post by: efikkan on March 30, 2010, 01:16:27
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.
Title: Re: Load native libs from inside jar file?
Post by: broumbroum on March 30, 2010, 11:57:37
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.