Re: ZipException when loading native jars
Posted by
gouessej on
Feb 25, 2013; 10:27pm
URL: https://forum.jogamp.org/ZipException-when-loading-native-jars-tp4027387p4028377.html
I have failed to make it work reliably but I can write a request for enhancement to prepare some modifications to ease the creation of a fat JAR containing both JOGL & GlueGen classes and native libraries. Currently, you can already use Ant tasks "zip", "fileset", "zipfileset" and "zipgroupfileset" to create a fat JAR but you have to disable the automatic extraction and loading of native libraries in GlueGen and then your JAR will have to extract the native libraries somewhere at runtime because it is impossible to directly load a native library inside a JAR, there is a closed bug report about that. Then, you will have to load them by yourself by using System.load().