In the simplest case, put the jogl.dll into the folder which holds your executable jar, and put the jogl classfiles into your jar (or let the jogl.jar reside next to your main jar and reference to the jogl.jar via your main jar’s manifest “Class-Path” line).
Or you put the jogl.dll and jogl.jar into subfolders, you just have to make sure via a small batch file that the classpath contains to the jogl.jar file, and that the folder holding jogl.dll is listed in the JVM variable “java.library.path” (which, btw, on Win32 is “/.” plus %Path%).
In order to have a better platform neutrality, let’s quote a former posting of Ken:[quote]To reference the native libraries, I would recommend putting them into subdirectories like solsparc/, macosx/, linux/, windows/ and writing wrapper scripts like “run.bat” / “run.sh” to determine the platform and specify -Djava.library.path appropriately. Either that or consider shipping a JNLP file as the launch mechanism with appropriate file:// URLs. I think there are new features in the 1.5 version of Java Web Start that assist in deploying desktop applications (i.e., on a CD) using JNLP.
[/quote]