LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: verzuz on February 27, 2007, 12:51:09

Title: Version mismatch: jar version is '8', native libary version is '7'
Post by: verzuz on February 27, 2007, 12:51:09
Hello,
i got some problems:
i was developing some stuff with an older version of lwjgl under win2k - after win crashed and im pi*ed off i moved to linux (again).
Now i dl the newest version of lwjgl (+ that optional stuff like devil) and tried to get it running.
The SpaceInvaders-Testgame is working, but when im trying to run my own stuff it says:
Exception in thread "main" java.lang.LinkageError: Version mismatch: jar version is '8', native libary version is '7'
        at org.lwjgl.Sys.<clinit>(Sys.java:105)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:108)
        at Game.init(Game.java:80)
        at Game.main(Game.java:34)

compiling works - but after ...
Could it be, that the linux-natives are not been updated or something?
Could somebody help me out? :)
Title: Re: Version mismatch: jar version is '8', native libary version is '7'
Post by: the2bears on February 28, 2007, 02:11:20
Sounds to me like you have the wrong native libraries for linux... check that you don't have any old versions sitting around in a ext directory or something. 

Bill
Title: Re: Version mismatch: jar version is '8', native libary version is '7'
Post by: verzuz on February 28, 2007, 12:31:09
Well - i have the right librarys in the right folders - but my TextureLoader caused this error. I'm not sure why, but now i changed the Loader (now i use parts of the TextureLoader in the SpaceInvaders-Example).
But thx for your help :)
Title: Re: Version mismatch: jar version is '8', native libary version is '7'
Post by: tofumayhem on April 18, 2007, 21:09:54
Sorry to bring up that old thread but I ran into the exact same problem.
I'm using the sourcecode from http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/devil/loadingtextures?s=texture
to load textures.
I get the "Version mismatch: jar version is '8', native libary version is '7'"  as soon as I hit GL11.glGenTextures(scratch);

I checked everything, created a new project, donloaded the current version from sourceforge, added the library path to the new version.
Any idea about that?
Title: Re: Version mismatch: jar version is '8', native libary version is '7'
Post by: Matzon on April 19, 2007, 05:42:35
your jar is incompatible with your native version. Most likely you have a native component in the jre/ext folder or windows folder. Please remove any old lwjgl*.dll files and replace them with a version that matches your jar.
Title: Re: Version mismatch: jar version is '8', native libary version is '7'
Post by: tofumayhem on April 20, 2007, 22:40:35
Sorry for the late answer, but for this project I moved to JOGL as we needed something asap.
But I'm still interested in LWJGL and to pin that down.
Actually I'm running on a fresh installed UBUNTU, no old LWJGL installation.
Nothing in ext or anywhere else (I keep everything in my eclipse projects to not spoil my installation).
Any other idea?

Title: Re: Version mismatch: jar version is '8', native libary version is '7'
Post by: Matzon on April 20, 2007, 22:47:31
unless the linux dist is broke - which is highly unlikely - then you have a Jar and .so that are mismatched - *somewhere* you have a rogue jar or native lib.