Login  Register

Cross-platform DLL selection

Posted by Gene on Jan 17, 2012; 9:34pm
URL: https://forum.jogamp.org/Cross-platform-DLL-selection-tp3667506.html

Friends,

I'm sorry if this is already covered somewhere but I've looked and can't find it.

Is it possible to configure a Swing Application Framework app that uses JOGL to dynamically choose the right set of Windows DLLs (64- or 32-bit) at startup based on VM word size?

Currently I'm running a tiny Java program in the Installer that queries the JVM and then copies the corresponding DLLs.

But this app is installed in (many) schools. Some have complex setups with both JVMs installed under 64-bit Windows. Sysadmins install my app with one JVM and user paths are set for the other. So my app dies a horrible death at startup.

Even though this is a dumb problem, it happens often enough that it would be worthwhile to modify my app to choose the right DLLs at runtime.

Is there a way to set up JOGL and code for this?

Thanks.