Setup natives manually

Hello,

I’ve a game that’s using lwjgl, I used JarSplice after compile to setup the natives but when I close the game it takes like 30 sec. untill it closes…

On eclipse it doesnt…
how can I setup the natives manually(in the code?)

System.setProperty("org.lwjgl.librarypath", "path/to/natives")

THANKS!!!

is that easy? I couldn’t find it any where… thanks a lot.

http://lwjgl.org/wiki/index.php?title=Distributing_Your_LWJGL_Application

System.setProperty(“org.lwjgl.librarypath”, GameValues.dir + “\bin\Natives”);

This is working now, for exemple I have (GameValues.dir + “\bin”) here the lwjgl and lwjgl_util jars how can I add them in code too?

Jars have to be loaded in the classpath.