JOGL with Java 1.4.2 DP2 (OS X)

Has anyone managed to get JOGL to work with Java 1.4.2 DP2 on OS X? I’ve just downloaded it and it seems to bomb with the following:

It used to work when I had 1.4.1 installed. I’m guessing that its got something to do with libjogl.jnilib that it may be in an incompatible format with java 1.4.2, but that’s just a guess. Anyone able to help me out here?

It seems to work for me. At least, I can still run code that uses JOGL like Martian Madness… I haven’t written anything of my own that uses JOGL (yet).

Afraid I’m not getting the error either. Are you sure that you didn’t stick your jogl.jnilib in an evil place inside of the JDK1.4.1 hive? (its evil, don’t do it)

Works for me too. The one problem I ran into was forgetting to switch the jogl jnilib 1.4.1 file to 1.4.2. (I’m using the jogl build from Gerard Ziemski)

[quote]Works for me too. The one problem I ran into was forgetting to switch the jogl jnilib 1.4.1 file to 1.4.2. (I’m using the jogl build from Gerard Ziemski)
[/quote]
Evil I tells ya :slight_smile: You’ll almost always forget. Same thing happens from time to time with IntelliJ when I get a new EAP release.

Well, I copied libjogl.jnilib to /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries. Unless there is a different place to copy them to, I don’t think I’m doing anything wrong.

But it seems weird, as there doesn’t seem to be a 1.4.1 directory anymore, and my guess is that Java 1.4.2 DP2 overwrote that?

Try putting both jogl.jar and libjogl.jnilib in /Library/Java/Extensions. This works for me.

[quote]Well, I copied libjogl.jnilib to /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries. Unless there is a different place to copy them to, I don’t think I’m doing anything wrong.

But it seems weird, as there doesn’t seem to be a 1.4.1 directory anymore, and my guess is that Java 1.4.2 DP2 overwrote that?
[/quote]
1.4.2 effectively kills of 1.4.1 according to the readme. As a test just add all of the files to your classpath when building your project as the application classpath is one of the locations where the JVM looks for native libraries.

I also end up with the a similar error:

java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/libjogl.jnilib

I have the two files only in the /Library/Java/Extension/
directory. Any ideas?

After checking and rechecking I found the cause of the error was the wrong library was put into the directory. I hope this helps anyone else from such a stupid error.