Distributing cross-platform .jar containing natives for LWJGL?
Posted
by
Carter H
on Game Development
See other posts from Game Development
or by Carter H
Published on 2012-03-17T20:00:05Z
Indexed on
2012/03/18
18:25 UTC
Read the original article
Hit count: 418
I'm making a game in Java using Slick2d, which depends on LWJGL. I can get everything to work in my development environment, but when I export it to a .jar, it needs the natives placed in the same directory as the .jar. What I'm asking is if it's possible to package the natives for all operating systems in the .jar, and automatically use the right ones depending on what OS was detected.
So, is this possible?
© Game Development or respective owner