Posted by
sasq on
Jan 15, 2015; 7:54pm
URL: https://forum.jogamp.org/Running-a-JOGL-app-from-a-single-JAR-file-tp4033846p4033867.html
gouessej wrote
Oh my .... Both Jar-in-Jar, multi-Jar and fat JARs aren't supported by JOGL 2.0.
Then again, this is an important piece of information, so it should be documented. If I saw it in the documentation, I would upgrade my libs right away, because then I'd have a reason for doing it and going around my distro's package manager.
gouessej wrote
You forgot to put the 32-bit native libraries into your fat JAR. Keep in mind that it is possible to use a 32-bit JRE on a 64-bit operating system. A 32-bit JRE on a 64-bit machine requires 32-bit binaries.
Good point.
And it actually solved the problem! :)
Now my phat JAR runs correctly on all platforms I planned supporting.
But I'll need to think on a way to make it somewhat less phat, since it already weighs nearly 5 MB

There's a strange bug on one of my friend's Macs, though: It starts correctly with all the libs, it loads a texture, but then it doesn't display on the color background. The background quad with just some colors is rendering fine, just not the textured quad. I wonder why, since it doesn't print any errors nor throws any exceptions, so I guess the image is loaded correctly, and it is probably something on the side of OpenGL.
But it's not related to JAR files, so I should perhaps save it for another day, another thread, unless I figure out the cause myself...
gouessej wrote
I just put a link to 20 lines of XML (Ant script) that you could simply copy/paste/modify to do the job.
Yeah, and that's what I did, and it pretty much worked.
But only after I understood that this is what I actually need to do.
gouessej wrote
I warned you several times but you'll probably have some other troubles even with a fat JAR.
Yes, I keep your warnings in mind. I just decided to save it for later, until the problems will actually occur. For now, after the last correction with win32 libs, it seems to work as I expected. So thanks for all your help.