Login  Register

Re: ZipException when loading native jars

Posted by ryanmohr on Feb 26, 2013; 11:17pm
URL: https://forum.jogamp.org/ZipException-when-loading-native-jars-tp4027387p4028397.html

In our case we already have a designated support folder on the user's computer where we store license information and our application log.  It was a natural fit to just throw a lib directory in there and keep everything in one place.

All we did was write a simple initializer that identifies the OS, copies the proper libraries into place, and then load them before bootstrapping the rest of our application.  If it helps I'd be happy to open source the Platform library I wrote to handle the runtime identification.

Only major downside to this approach is the bloat, since the libraries for all OS's are included in every release.  For us that's an easy tradeoff to keep the deployment as simple as possible and be able to rely on a single runnable jar for windows (as exe wrapped through innosetup), mac (as app bundled), and linux.