Note that there are some explanatory texts on larger screens.

plurals
  1. PONull Pointer Exception in GLProfile with JOGL 2.0
    primarykey
    data
    text
    <p>JOGL 2.0 added a GLProfile parameter to GLCapabilities. For whatever reason, with this simple code:</p> <pre><code>import javax.media.opengl.GLCapabilities; import javax.media.opengl.GLProfile; import javax.media.opengl.awt.GLCanvas; public class Test { public static void main(String[] args){ GLCanvas canvas = new GLCanvas(new GLCapabilities(GLProfile.getDefault())); } } </code></pre> <p>I get the following error:</p> <pre><code>Exception in thread "main" java.lang.NullPointerException at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1561) at javax.media.opengl.GLProfile.get(GLProfile.java:589) at javax.media.opengl.GLProfile.getDefault(GLProfile.java:421) at javax.media.opengl.GLProfile.getDefault(GLProfile.java:429) at com.setcorp.mosey.Test.main(Test.java:7) </code></pre> <p>So I cannot even create a GLCanvas for use in my JOGL 2.0 application.</p> <p>Substituting in:</p> <pre><code>GLCanvas canvas = new GLCanvas(new GLCapabilities(GLProfile.get(GLProfile.GL2))); </code></pre> <p>or</p> <pre><code>GLCanvas canvas = new GLCanvas(new GLCapabilities(null)); </code></pre> <p>for line 7 gives me the same error.</p> <p>I have set the build path to include newt.all.jar, jogl.all.jar, nativewindow.all.jar, and gluegen-rt.jar. I unzipped the dlls from their native jars and set the native library locations respectively in eclipse. I am using the jogl-2.0-b409-20110717-windows-i586 build and running W7, Intel Core 2 Duo T8100 2.10GHz, 2GB RAM, and Nvidia Quadro NVS 140M.</p> <p>Is there an earlier build that would work for me?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload