Login  Register

Re: Running a JOGL app from a single JAR file

Posted by gouessej on Jan 15, 2015; 10:00pm
URL: https://forum.jogamp.org/Running-a-JOGL-app-from-a-single-JAR-file-tp4033846p4033868.html

sasq wrote
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.
Keep in mind that the JogAmp community is NOT responsible for the GNU Linux distros packaging management. I always ask the developers to use our very latest version, always. This is one of the first things I asked you to do.

sasq wrote
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
Maybe we should fix your other problems first, shouldn't we?

sasq wrote
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...
Look at how you generate the identifiers of your textures. It's just a guess.

sasq wrote
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.
That's why I'm here, I'm here to transmit you some of my knowledge so that you get more and more autonomous. I have nothing to sell.

sasq wrote
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.
You're welcome and I'll be there to help you. If you aim only recent Macs and if your user base isn't very silly, it should be ok.
Julien Gouesse | Personal blog | Website