Login  Register

Can't get JOGL to run after migration

Posted by kitfox on Nov 15, 2011; 7:34pm
URL: https://forum.jogamp.org/Can-t-get-JOGL-to-run-after-migration-tp3510724.html

I'm changing the way I'm linking libraries in a NetBeans project.  Up to now I've been using a NetBeans JOGL plugin.  I want to switch to linking the libraries directly.  Unfortunately, I'm getting errors as soon as I try and use JOGL:

[code]
        GLProfile glprofile = GLProfile.getDefault();

Exception in thread "AWT-EventQueue-0" 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 javax.media.opengl.GLProfile.validateInitialization(GLProfile.java:1428)
        at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1580)
        at javax.media.opengl.GLProfile.get(GLProfile.java:623)
        at javax.media.opengl.GLProfile.getDefault(GLProfile.java:480)
        at javax.media.opengl.GLProfile.getDefault(GLProfile.java:486)
        at com.kitfox.coyote.renderer.jogl.CoyotePanel.getCapabilities(CoyotePanel.java:90)
...
[/code]

I'm finding the documentation on how exactly to configure JOGL confusing and conflicting.

First I downloaded http://jogamp.org/deployment/jogamp-current/archive/jogamp-windows-i586.7z and unzipped it.  I tried following the instructions on http://www3.ntu.edu.sg/home/ehchua/programming/opengl/JOGL2.0.html, but I could not find the files "newt.all.jar" and "nativewindow.all.jar".  

I then tried following the instructions on http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE.  There's a different tutorial per editor, and each one has you including different jar files.  The NetBeans one just says include 'all' the jar files.  It looks like there are about thirty of them.

I tried including jogl.all.jar and gluegen-rt.jar in my above run.  I've included the library path to the .dlls in my VM options.  What am I doing wrong?