compile problem - prolly just a stupid mistake

Okay . . . just wrote a quick little Base OpenGL class to derive all my other classes from. I go to compile and the only error is . . .

 
   [javac] C:\NateDev\Artillery\src\com\rn\GLUser.java:12: cannot access org.lwjgl.DisplayMode
    [javac] bad class file: C:\NateDev\Artillery\lib\lwjgl.jar(org/lwjgl/DisplayMode.class)
    [javac] class file has wrong version 48.0, should be 47.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac]   protected static DisplayMode mode;
    [javac]                    ^
    [javac] 1 error

The only time I’ve ever gotten this error before was when I the package name in one of my class files didn’t match the directory I’d put it in. Took forever to figure it out. This . . . well, it’s in the .jar, so that’s not the problem and the .jar is definitely in the classpath, etc.

I managed to compile a class similar to this yesterday, so I’m positive this is just a ID-10-T error, but I’m wondering if anybody out there’s willing to smack me upside the head and tell me what’s wrong.

-Nate

Well, figured it out myself.

Was using the 1.3.1 JRE. Switched to 1.4.2 beta and it works just fine now.

Guess you guys built this with 1.4.x

Sorry to bother.

-Nate

yeah - how the hell did you compile in the first round ???
We use the assert keyword, which implies that you NEED to pass -source 1.4 as a switch to javac !

[quote]yeah - how the hell did you compile in the first round
[/quote]
I’m using JDeveloper and currently I have 3 different JRE’s on my box. Last one I just dropped my class into an already built project and did it that way, but this time it’s got its own project . . . which defaulted to 1.3.1.

Wasn’t actually aware you could force compile to a particular JRE version. That’s kind o’ kewl.

Anyway . . . is fixed for now . . . no more questions for a while.

-Nate