Distribution of jogl with app?

I saw this thread:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1092076761;start=3#3

I want to do this but I am not quite sure how. I presume doing this means the user does not have to download and install JOGL which many find confusing.

Can someone give an example of how to point to the .dll and .jar files if distributed with an app?

just to claify I want to include the .jar and .dlls inside an executable jar containing my application (or in the directory of my app if jar is not possible), and make it so that the user does not have to install JOGL before they can use my app.

Someone must know how to do this?? ???

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]