Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.lwjgl.DefaultSysImplementation.getPointerSize()I

At first this looks like a duplicate of like 9 other questions, but mine is actually unique. And no amount of answers have fixed it. Working with JLWGL.

Exception in thread "main" java.lang.UnsatisfiedLinkError:     org.lwjgl.DefaultSysImplementation.getPointerSize()I
    at org.lwjgl.DefaultSysImplementation.getPointerSize(Native Method)
    at org.lwjgl.Sys.<clinit>(Sys.java:113)
    at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
    at renderEngine.DisplayManager.createDisplay(DisplayManager.java:30)
    at engineTester.MainGameLoop.main(MainGameLoop.java:11)

No amount of googling has revealed the cause. I have followed several tutorials to the letter. The natives folder IS PROPERLY SET UP. Yes I still get this bug! Sooo frustrating!

like image 604
Bassinator Avatar asked Dec 02 '14 01:12

Bassinator


1 Answers

I had the same issue today when trying to run a Slick2D application. The issue came up, I think, because I used two different versions of LWJGL. Using Maven, Slick2D came with a dependency to LWJGL 2.9.1 while the natives I provided already came from 3.0. So I downloaded the 2.9.1 natives which solved the issue for me.

like image 164
aix Avatar answered Oct 05 '22 06:10

aix