Re: Is there a chance to build working JAR with Maven?
Posted by
gouessej on
Apr 14, 2015; 11:38am
URL: https://forum.jogamp.org/Is-there-a-chance-to-build-working-JAR-with-Maven-tp4034295p4034296.html
Hi
I have used Maven with JogAmp's Ardor3D Continuation (based on JOGL) for several years without any trouble, maybe you can have a look at my pom files:
https://github.com/gouessej/Ardor3DWhen the JARs containing the native libraries are in the same directory than the JARs containing the Java libraries, the automated native library loading works (i.e no UnsatisfiedLinkError). Your last error occurs because the native libraries and the Java libraries mismatch, you mix the native libraries and the Java libraries of two distinct versions of JOGL.
If you want to run your applications by using your IDE specific settings, look at this webpage in the wiki:
http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDEI don't use Maven to run my JOGL applications, there is at least one contributor able to help you on our IRC channel about Maven in general.
Edit.: It reminds me an error message someone else had, you mix the latest GlueGen JAR (2.3.1) with an old DLL (< 2.3.1) or the DLL of the appropriate bitness isn't used (a 32-bit VM even on a 64-bit OS can only load 32-bit native libraries).
Edit.2: gluegen-rt-natives-*.jar and jogl-all-natives-*.jar should be in the same directory than jogl-all.jar and gluegen-rt.jar, those 2 JARs should be in the classpath.