It's a simple OpenGL app. The problem is, JOGL needs native libraries, and I need to set "Native library location", which is different for Windows and Linux. Is it possible to share project settings between platforms?
I want to make the workspace setup process as simple as "checkout from SVN, compile, run".
If it's just Windows and Linux, you can put them in the same folder, as j flemm states.
The reason it works is because of the definition of
System.loadLibrary()
in Java:That means
System.loadLibrary("jogl")
will try to loadjogl.dll
on Windows andlibjogl.so
on Linux. It's pretty nice.