Login  Register

Re: Creating an executable .jar file

Posted by Wade Walker on Jun 01, 2011; 5:56pm
URL: https://forum.jogamp.org/Creating-an-executable-jar-file-tp3011748p3011927.html

Hi Alex,

If your app is an Eclipse RCP app, you could try the instructions in my tutorial at http://wadeawalker.wordpress.com/2010/10/24/tutorial-creating-native-binary-executables-for-multi-platform-java-apps-with-opengl-and-eclipse-rcp/. I've used this same procedure with JOGL 2 and JOGL 1.1.1a, and it works fine for both.

If your app is not an RCP app, you'd need to manually do some of what the Eclipse framework does for you -- it unpacks the JOGL JARs at runtime so the .dll/.so files are visible in the app's classpath. My tutorial discusses this a bit at the beginning, and I also mention some of the other possible tools that do this, like launch4j and JSmooth.