Login  Register

JOGL 2 on OSX 10.6.6

classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

JOGL 2 on OSX 10.6.6

iamstuffed
5 posts
I can't seem to get any simple hello world style examples to work anymore, and the webstart demos don't work either.

I just get this error, even if I simple call GLProfile.initSingleton(true);

This was the error output when attempting to run one of the Java Webstart demos. Any ideas on how to get it to work? I'm not sure if this has anything to do with Apple's recent Java software update, but my simple programs used to work.

java.lang.NullPointerException
        at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1584)
        at javax.media.opengl.GLProfile.isGL4bcAvailable(GLProfile.java:151)
        at javax.media.opengl.GLProfile.glAvailabilityToString(GLProfile.java:242)
        at javax.media.opengl.GLProfile.glAvailabilityToString(GLProfile.java:310)
        at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1283)
        at javax.media.opengl.GLProfile.access$000(GLProfile.java:71)
        at javax.media.opengl.GLProfile$1.run(GLProfile.java:117)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:115)
        at demos.hdr.HDR.main(HDR.java:134)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.javaws.Launcher.executeApplication(Launcher.java:1909)
        at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1847)
        at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1609)
        at com.sun.javaws.Launcher.run(Launcher.java:138)
        at java.lang.Thread.run(Thread.java:680)
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: JOGL 2 on OSX 10.6.6

Wade Walker
Administrator
857 posts
I tried that HDR demo from http://jogamp.org/jogl-demos/www/ just now on Mac OS X 10.6.6, NVIDIA GeForce 320M, Safari 5.0.4 (6533.20.27), and it works fine for me. Maybe your Java installation is messed up somehow?
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: JOGL 2 on OSX 10.6.6

iamstuffed
5 posts
Ah, I still had the Java3D related jars in my home directory, ~/Library/Java/Extensions

After I removed those jars, everything worked fine.