Howdy-
I’m trying to produce a jar file which contains within it my application, the jogl.jar, and native libraries. (Actually, I’m including native libraries for a number of platforms.) I have code to extract the libraries from my jar file so that I can loadLibrary() them, and I’d like to do this with the jogl libraries. My goal is to make things more self-contained and not to have to fiddle with command line arguments (-Djava.library.path and friends.)
I’ve discovered that I can disable NativeLibLoader by calling disableLoading(), but this is giving me grief with JSR231 beta 3. There seem to be dependencies on libjawt, and in turn on libmawt. I can load jawt myself, but loadLIbrary(“mawt”) seems to fail consistently (it can’t find it).
In any event, this is cumbersome. I’m open to a better way of doing things. Alternatively, it would be nice if I could tell JOGL where to look for the libraries. E.g., NativeLibLoader.prependSearchPath(<the directory where I’ve just extracted the libraries>).
Also, for style, shouldn’t disableLoading and enableLoading be combined into “setEnableLoading(bool)”?
-Ed