Jogamp-fat.jar can't load library: "...natives\windows-amd64\\gluegen_rt.dll"
Posted by captainfat on Sep 28, 2021; 11:13pm
URL: https://forum.jogamp.org/Jogamp-fat-jar-can-t-load-library-natives-windows-amd64-gluegen-rt-dll-tp4041324.html
So a little background.
I am trying to create a runtime-image for my java application by using JLink. My project uses jogamp-fat.jar, which is an automatic module. Jlink doesn't allow you to create a runtime-image if you have any automatic modules in your project. I ended up figuring out a way to convert jogamp-fat.jar to no longer be automatic by using jdeps and javac --patch-module.
This did allow me to execute JLink, and my application still ran just fine. However, when I run the .bat file created from JLink, I get "java.lang.UnsatisfiedLinkError: Can't load library: ...\ bin\natives\windows-amd64\\gluegen.dll".
I've been scratching my head for a couple weeks with this and can't figure it out. Any help would be appreciated, even if the answer is Jlink just can't be used with jogamp-fat.
P.S. My java version is 14.0.1 x64