Macintosh OSX JOGL setup help

I am NOT a JOGL or JAVA programmer, but have been asked to create a custom installer for PC and Mac for a set of Jogl based Applets. Everything is working OK on PC. I cannot figure out where to put the following files on mac OSx:

jogl.jar
QMTools.jar (I assume in the same folder where the applet is called?)
libjogl.jnilib

I have tried /Library/Java/Home/bin (for the .jnilib), and /Library/Java/Home/lib/ext (for the jogl.jar)

also I’ve tried the Extensions folder in the System/Library. (just put both the .jar and the .jnilib there).

I get a java .notinited message.

Help please??

James Perdue

I simply place jogl.jar and libjogl.jnilib in Library/Java/Extensions/ and all works fine.

Hope this helps.

Thanks. That’s what I have. The applet says “Applet loaded”, followed by “Applet not initialized”.

Where would I find a log on Explorer for Mac OSX 10.3?

Thanks

Is the applet available from a server so others can check?

Personally, I hate using IE (come close to deleting it, but need it for testing) on the Mac and always use Safari and the odd time - Firebird.

I’ll check to see if the author will permit sharing for this purpose. My NEXT PROBLEM. I’m trying install it into LIBRARY/JAVA/EXTENSIONS and run into the permissions problem for my installer.

Is there a way to put the jogl stuff somewhere that won’t require installation permission?

You require administrator permissions to install and delete files from the Library/Java/Extensions/.

You could try and set your lib paths dynamically at runtime with some JVM -D settings. With these settings, you would be able to keep the jogl.jar and other lib files in any of your personal folders.

I’ll try and find out later what specific calls you need to make to set the runtime lib settings. In the meantime, maybe use the forums search functions for something like ‘runtime parameters’.

Hi,
Im no Mac user but i think( and hope too ) that with -classpath for the jars and -Djava.library.path=… for the native libs it’ll work.

Yep, those are the ones. Should work without problem on Mac.

Thanks for your help. But… I’m confused. Where do these parameters go? On the html tag for the applet?

Just a bit more specific please.

By the way, the applet loads fine on Safari, just not netscape or explorer.

IE and Netscape on mac use Java 1.3 which is not compatible with JOGL. That may be the main problem.

/Library/Java/Extensions or /System/Library/Java/Extensions is where jogl needs to be for an Applet to use it (in Safari).

~/Library/Java/Extensions can be used to install it only for the current user (doesn’t require admin privs.)

I would recommend to use Java Web Start (if possible) to launch this applet.