JOGL on Mac OS X using bundle gives instatisfiedlinkererror

Hi All,

I am bundling JOGL 2.x for the Mac OS X Mavericks and when I run the app in the bundle I get a linker error regarding native_awt. I am only bundling jogl-all.jar and not the native libs for jogl for the mac. I was told this was the right jar and not include natives because the jogl-all jar would try to use what is provided. Now I had to add the jdk to the bundle as required by Apple so not sure if JOGL would work. It works fine with only that jar for Java Web Start. I am using the newly released jdk 1.8.0 but I think that is not the problem since web start works fine with it.

Any clues? I am thinking someone here had to bundle a game for the app using JOGL and can tell me how they got JOGL to work from a app bundle. If so did you bundle the JOGL-All.jar and the native libs jar for the Mac? Or did you unbundle the jnilibs from the JOGL native bundle and include those in the .app bundle?

Thanks!
-Tony

Hi

Please rather post your questions about JOGL on the official JogAmp forum:
http://forum.jogamp.org/

jogl-all.jar and gluegen-rt.jar are necessary. As far as I know, you can make a single fat JAR and you have to put the native libraries into a particular directory within the JAR so that GlueGen finds them.

Yes, several JOGL users succeeded in bundling JOGL games as .app files.

Best regards.

Thanks for the advice this is my first time asking this question so not sure which group I should post to.

I will post to the other group next but do you have exact details about the jar you mentioned like where to put the natives? I can jar up the two jars you mentioned using ant so they keep the paths relative to the jar root but just need to know the exact structure for the natives.

Many thanks!
-Tony

Yes I have the exact detail and I posted them on the official forum yesterday before falling asleep :wink:

Thanks I found it!

-Tony