Login  Register

Re: ZipException when loading native jars

Posted by ryanmohr on Dec 04, 2012; 5:15pm
URL: https://forum.jogamp.org/ZipException-when-loading-native-jars-tp4027387p4027395.html

The purpose of using onejar is to allow us to have a single file that can then be packaged as a native app / installer for any platform (wrapped into an app bundle and disk image for macs, wrapped into an executable and installer using launch4j and inno setup for windows, and linux users just get the jar compressed into a .tar.gz).  Works great and simplifies our deployment process.  Only thing that doesn't work is jogl.

I can easily skip the native jars and write my own native library loader that detects the platforms and loads the right libs.  Just didn't want to go to the effort if you guys had already written something that would work for us.


On Tue, Dec 4, 2012 at 3:34 AM, gouessej [via jogamp] <[hidden email]> wrote:
Hi

JogAmp is not yet compatible with the "one single fat JAR approach" and it is clearly not the advised way of deploying applications based on JOGL 2.0. We have to fix a bug preventing the loading and the extraction of native libraries from JARs when they are inside a JAR to make it work with onejar. I know lots of Mac developers love bundling their applications as Mac bundles with a single JAR but you should rather find a way of using several JARs to create a bundle or use any other working installer (Java Web Start, GetDown, IzPack, ...).


If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/ZipException-when-loading-native-jars-tp4027387p4027392.html
To unsubscribe from ZipException when loading native jars, click here.
NAML