线程"main"中的异常java.lang.UnsatisfiedLinkError:org.lwjgl.DefaultSysImplementation.getPointerSize()I [英] Exception in thread "main" java.lang.UnsatisfiedLinkError: org.lwjgl.DefaultSysImplementation.getPointerSize()I

查看:91
本文介绍了线程"main"中的异常java.lang.UnsatisfiedLinkError:org.lwjgl.DefaultSysImplementation.getPointerSize()I的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

起初,这看起来像是其他9个问题的重复,但是我的实际上是唯一的.而且没有答案能解决这个问题.使用JLWGL.

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)

没有大量的Google搜索发现了原因.我遵循了这封信的一些教程.natives文件夹已正确设置.是的,我仍然收到此错误!太令人沮丧了!

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!

推荐答案

今天,当我尝试运行Slick2D应用程序时遇到了同样的问题.我想这个问题出现了,因为我使用了两个不同版本的LWJGL.使用Maven,Slick2D附带了对LWJGL 2.9.1的依赖关系,而我提供的本地人已经来自3.0.因此,我下载了2.9.1原生版本,为我解决了这个问题.

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.

这篇关于线程"main"中的异常java.lang.UnsatisfiedLinkError:org.lwjgl.DefaultSysImplementation.getPointerSize()I的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆