glShaderi() gives "NoSuchMethodError" for "glGetShaderi(II)I"

Started by mayaknife, June 16, 2013, 08:58:09

Previous topic - Next topic

mayaknife

I'm using version 2.9.0 of lwjgl. According to the docs glGetShader(int, int) is deprecated and replaced by glGetShaderi(int, int). If I use glGetShader(int, int) I get a deprecation warning during compile but the program works properly. If I use glGetShaderi(int, int) then the warning goes away but during execution I get the following:

    Exception in thread "main" java.lang.NoSuchMethodError: org.lwjgl.opengl.GL20.glGetShaderi(II)I

Any ideas as to what the problem might be?

Thanx.

Evil-Devil

Should work fine when it compiles...have you the final release of 2.9.0?

mayaknife

It compiles without any problems.

I downloaded 2.9.0 last night from here: http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%202.9.0/lwjgl-2.9.0.zip/download

I don't know if its the "final" version, but its dated from April 21st, which sounds pretty final.

spasi

Sounds like you have a different LWJGL version in your classpath during execution.