编程技术网

关注微信公众号,定时推送前沿、专业、深度的编程技术资料。

 找回密码
 立即注册

QQ登录

只需一步,快速开始

极客时间

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

roffe Java 2022-5-11 10:55 6人围观

腾讯云服务器
线程"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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程技术网(www.editcode.net)!

腾讯云服务器 阿里云服务器
关注微信
^