# JNI Error when Wrapping Jar with JOGL using Launch4j

I have been trying to wrap my fat JAR file into an EXE using Launch4j, but I have been running into problems when I try to execute the EXE. Here is the error log I get from Launch4j:

Executing: E:\Downloads\CasualCaving.exe
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:63) at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:106)
at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:421) at com.jogamp.common.os.Platform$1.run(Platform.java:317)
at java.security.AccessController.doPrivileged(Native Method)
at com.jogamp.common.os.Platform.<clinit>(Platform.java:287)
at com.jogamp.opengl.GLProfile.<clinit>(GLProfile.java:147)
at org.graphics.Render.<init>(Render.java:20)
at org.engine.Main.main(Main.java:18)


I am using JOGL 2.3.2 imported through Maven, with the assembly plugin to compile it to a fat JAR. Here is a picture of my library configuration:

I am not sure what is wrong, as the JAR file works fine.

• Have you verified that this file exists in the folder it's being sought? E:\Downloads\natives\windows-amd64\\gluegen-rt.dll That double-backslash at the end looks suspicious, like it was expecting a path without a trailing backslash and added one, but the provided path already had one. Aug 10, 2019 at 14:28
• @DMGregory that fixed it! I just had to provide all of the JOGL natives for each platform. Aug 10, 2019 at 15:14