Re: JOGL with JWrapper deployment, FileNotFoundException "gluegen-natives-macosx-universal.jar"
Posted by
gouessej on
URL: https://forum.jogamp.org/JOGL-with-JWrapper-deployment-FileNotFoundException-gluegen-natives-macosx-universal-jar-tp4033500p4033506.html
Hi
Sorry to tell you this but in my humble opinion, JWrapper isn't bad but it's not promising. As it's not open source, you don't really know that it does under the hood and if it gets discontinued, you'll be alone with this tool and unable to fix it without reverse engineering. As JWrapper is proprietary, it's a black box, I can't look at its source code and tell you "we should modify this part to make it work" if your trouble comes from it. Maintaining proprietary tools is none of our concerns (in my humble opinion). JWrapper has a limited free of charge version but it's a commercial product and I don't work for free for profitable organizations. I have to pay my bills. If the problem comes from JWrapper, its authors can contact us and we'll find a kind of agreement to make things work.
You need to provide the native libraries for GlueGen and JOGL. Use the JARs gluegen
-rt-natives-macosx-universal.jar and jogl-all-natives-macosx-universal.jar (no need to set the Java library path) or the individual native libraries (+ set the Java library path).
Moreover, there are similar open source and fully free of charge solutions.
PackR provides most of JWrapper features except the Java installation APIs, the build-in multi-language support, the build-in signing and the update mechanism. I use my own tool (based on PackR) and several JogAmp users gave a try to PackR. JWrapper seems to use Oracle Java and I'm not 100% sure that it respects "Oracle's redistribution terms" despite the vague claims on its website whereas PackR supports both Oracle Java and OpenJDK.
I already have a working example for OS X, jmaasing tested my zipped APP bundle several months ago. Do you want to use a solution that just works for free? The most important missing feature is the update mechanism. PackR creates a directory containing your application and the OpenJDK JRE, it can minimize the latter. Then, you just have to make a ZIP of this directory and that's all. When the end user downloads the zipped APP file, OS X automatically unzips it and recognize it as an application. PackR produces similar ZIP files for GNU Linux and Windows, my tool goes even further by creating RPMs and DEBs.