packaging jogl into a jar with eclipse?

Hello.

Been working with jogl for a few months now, and though it’s slow going I’ve got a small app together.

Using Eclipse I try to export my project to a .jar file, and I specify my entry-point as usual, but the jar won’t run. I keep getting class not found errors on the jogl classes (having linked jogl as a library in Eclipse).

To be expected, surely, but is there a way to include jogl (with binary libraries) in a jar for easy use by non techs?

My solution so far (rather inelegantly) has been to send my source to people who need to see it, make sure they’ve set up jogl correctly and let them compile-run. Naturally not an acceptable solution.

Is there a tutorial somewhere on how to package the entire thing (preferrably in eclipse, but not necessarily), making it run flawlessly? WebStart would also be great.

Oh, and please assume I know nothing about packaging, as you’d be mostly correct in that.

The easiest way to distribute JOGL apps is with Java Web Start, because JOGL uses native libraries and Web Start handles them automatically. Go to the jogl-demos site and save one of the .jnlp files to disk. Once you have your web server set up to serve JNLP files (you need to make sure it sets the MIME type to x-application/x-java-jnlp-file) it is really easy to set up new JOGL applications; we provide an extension JNLP file for JOGL on jogl.dev.java.net so all you have to do is point to it. You can also optionally redeploy the associated jars yourself.