Anyone know how to set up LWJGL with Jar Bundler for Mac OS X?

I know a few people (Cas) have experience doing this, and I’m scratching my head on what needs to go in which field.

Can someone run me through what goes into the GUI in the Jar Bundler to get LWJGL working on Mac OS X?

Here’s some screenshots of what I’ve got:

http://img831.imageshack.us/img831/7109/screenshot20100803at926.png

http://img28.imageshack.us/img28/9884/screenshot20100803at927.png

http://img717.imageshack.us/img717/9884/screenshot20100803at927.png

I get a java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path popup when I try to run this.

The people on #lwjgl told me I needed to add the java.library.path option in, but if I’m bundling the jars in the application then theoretically I shouldn’t need to do that, right?

Seems like I’m just missing one thing.

I hacked up the Revenge Of The Titans app and replaced it with my junk - success.

Always the easiest way :slight_smile: I’ve never see n JarBundler before but it might be fruitful to analyse the difference between the file it produces and the one that works and see how to fix it.

Not that you’ll ever use JarBundler again, coz you’ll just enshrine everything in an ant build.

Cas :slight_smile:

The problem is/was (?) that the OS doesn’t load your native libraries from within a JAR file. You have to extract it (find the jar-file, use JarEntry/ZipEntry), as a file in the ‘java.library.path’ directory, then the OS will find it.

I tried with and without the libraries as a JAR, actually. But you’re right I think that the path wasn’t pointing to them for whatever reason.