Re: JOGL with JWrapper deployment, FileNotFoundException "gluegen-natives-macosx-universal.jar"
Posted by nyholku on
URL: https://forum.jogamp.org/JOGL-with-JWrapper-deployment-FileNotFoundException-gluegen-natives-macosx-universal-jar-tp4033500p4033509.html
Hi (gain) gouessej!
And thanks for your considerate opinions.
I solved my immediate problem late last night. It seems that for years I've been nurtusing a bastard setup for packaging my application which caused all the problems (witness my previous mails last year relating to .jnilib / .dylib loading etc).
So I bit the bullet, started from scratch and used JOGL 2.2.4 and now everything builds nicely and cleanly using just gluegen-rt-all and jogl-all jars like this:
<File classpath='yes' path="jogl-all.jar" >../jogamp-all-platforms-v2.2.4/jar/jogl-all.jar</File>
<File classpath='yes' path="jogl-all-natives-macosx-universal.jar" >../jogamp-all-platforms-v2.2.4/jar/jogl-all-natives-macosx-universal.jar</File>
<File classpath='yes' path="gluegen-rt.jar">../jogamp-all-platforms-v2.2.4/jar/gluegen-rt.jar</File>
<File classpath='yes' path="gluegen-rt-natives-macosx-universal.jar">../jogamp-all-platforms-v2.2.4/jar/gluegen-rt-natives-macosx-universal.jar</File>
(Just saw your other response and I see this is exactly what you proposed so you are vindicated!)
As to JWrapper, I agree that it is not great that it is not Open Source, but now that I've solved the above issue it seems to work so my main risk in using it is wasted two evenings … if explodes on me I just have to just find something else and so far JWrapper has been the only solution that ticks all my boxes…until your post that is!
I did not know about 'packr', I will have a look cause obviously an open source and free (as in beer) for my free would be preferable. However from your description it looks like it misses the step that I personally want most: single executable file (.app .exe) that embeds the JRE, I do not want a directory where the JRE is side by side with the .app or .exe). But hopefully I'm wrong and 'packr' does this, I will have a look.
JWrapper seems to get everything just right, the only problem seems to be that it is not open (the requirement to show their branding is a small nuisance and from what I've dig into it seems to respect Oracle licensing). For profitable organisations the price is a non issue. I saw one or two rough corners in the documentation but if it is not discontinued they will fix those I'm sure. Overall it was a very good experience and worked mostly out of the box and it comes with batteries included so to speak.
Re 'rpack' OpenJDK and automatic updates: IMHO OpenJDK on Mac is not yet up to par with Oracle so I won't be using that for a while, so that is a non issue for me. For my application automatic or even semiautomatic updates are *not* wanted … in fact would be nuisance and dangerous as this is a CNC machine application where you don't want anything to change under you and preferably the computer is not even networked.
Once more thanks for the help, the great work on JOGL and the great support on it AND sharing your thoughts re JWrapper / rpack, I appreciate it very much.