Login  Register

Re: Using JOGL in Eclipse

Posted by Wade Walker on Nov 03, 2011; 8:25pm
URL: https://forum.jogamp.org/Using-JOGL-in-Eclipse-tp3476354p3478317.html

Hi Andi,

One solution (which I describe at http://wadeawalker.wordpress.com/2010/10/24/tutorial-creating-native-binary-executables-for-multi-platform-java-apps-with-opengl-and-eclipse-rcp/) is to write your desktop app as an Eclipse RCP app. This takes care of the multi-platform aspect, and gives you a native binary for each platform rather than a batch file.

If you really want only one batch file, you'd have to write it in some language that works on all your platforms somehow, then set the java.library.path inside it, then invoke your program with "java -jar". You can't set java.library.path from inside your Java program, because they're read-only