Re: Cross-platform DLL selection
Posted by
gouessej on
Jan 17, 2012; 10:42pm
URL: https://forum.jogamp.org/Cross-platform-DLL-selection-tp3667506p3667684.html
Hi
Actually, it already works, it is already implemented. As I have no access to any machine under Windows, someone else tested my game with a 32 bits JVM on a 64 bits operating system and it works (after JOAL bug 550 has been fixed by Sven). All JogAmp APIs (JOCL, JOGL, JOAL) use the same mechanism by default: just put the JARs containing the native libraries into the same directory than those containing the classes, put only the JARs containing the classes into the classpath and GlueGen will automatically extract the proper native libraries (.so, .jnilib, .dll) and loads them.
If you're not convinced, try it by yourself:
http://tuer.sourceforge.net/very_experimental/tuer.jnlpSven just implemented a great feature, it drives the deployment easier, you don't need to set the Java library path anymore. Best regards. I'm falling asleep...