newbie question: unsupported version

I’m getting the following error:

java.lang.UnsupportedClassVersionError: net/java/games/jogl/GLCapabilities (Unsupported major.minor version 48.0)

when I do:
GLCapabilities glCaps = new GLCapabilities();

Is this an OpenGL or a jogl version problem.

Thanks

I’ll give it a shot. Usually a UnsupportedClassVersionError happens when you try to run code that was compiled in a newer JDK on an older VM. When 1.4 came out, Sun updated the major and minor versions of classes for the first time, so 1.4 compiled classes must run in a 1.4+ VM.

I believe JOGL requires 1.4.2

Even so, I did a quick search and found people having this problem even when they’re using 1.4.x across the board, so I dunno. Just a guess.

Does the error have a stack trace along with it?

Thanks for the hint. I was using an earlier JDK. When I switched to 1.4.2, it ran.

Joe