Question

I've written an application the builds fine on my machine but when I move it to another machine the dependent JOGL libraries cannot be found.

Is it possible to create a build that sets up all the required JOGL files so that you can distribute your Java application with the necessary JOGL libraries?

If someone could explain this in NetBeans that'd be appreciated too.

Thanks,

James

Was it helpful?

Solution

I wrote a tutorial about how to create redistributable JOGL apps for multiple platforms. The tutorial uses Eclipse instead of NetBeans, but the principles should be the same. You can use this system to build JOGL apps that are completely self-contained, so they don't even require the user to have Java installed.

The tutorial is on my blog at http://wadeawalker.wordpress.com/2010/10/24/tutorial-creating-native-binary-executables-for-multi-platform-java-apps-with-opengl-and-eclipse-rcp/.

OTHER TIPS

This usually happens because the libraries are located on your machine somewhere, which is the way that most tutorials recommend that you install JOGL. The key is to add the JOGL libraries inside your project, and point the project to use those rather than the libraries on your machine. You should then be able to package the application.

Note that because the JOGL bindings are platform-dependent, it means (for example) that if you wrote this on a Mac and try to deploy to Windows, it won't work because the native calls aren't available.

We usually distribute our JOGL based applications using Jnlp. This allows the automatic platform detection from the JNLP Launcher to kick in as well as the use of recent versions of Jogl Libraries. If you would like to see how to craft a proper JNLP look at the samples on this page for NASA WorldWind.

You can use Java Webstart to deploy an application using JOGL, it is explained here: http://jogamp.org/jogl/doc/deployment/JOGL-DEPLOYMENT.html

Look at my own JNLP file if you want: http://tuer.sourceforge.net/tuer.jnlp

Edit.: I use JNDT now, it works a lot better :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top