本文介绍了如何在bluej中使用lwjgl?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
lwjgl由两部分组成.我通过将"lwjgl.jar"
复制到"...\BlueJ\lib\userlib"
文件夹中来设置Java部分,并且可以正常工作.对于本机部分,我必须将java.library.path指向两个DLL "lwjgl.dll"
和"OpenAL32.dll"
.我该怎么办?
The lwjgl consists of two parts.I set up the java part by copying the "lwjgl.jar"
into the "...\BlueJ\lib\userlib"
folder and that worked.For the native part I have to point the java.library.path at the two DLLs "lwjgl.dll"
and "OpenAL32.dll"
. How do I do that?
推荐答案
LWJGL查找一个特殊变量以查找其本机库.我不知道blueJ的工作原理,但是您应该执行以下操作:
LWJGL looks in a special variable to find its native libs. I don't know how blueJ works but you should do something like:
System.setProperty("org.lwjgl.librarypath", new File("pathToNatives").getAbsolutePath());
更多信息和另一种设置方法是
More info and another way to set this up is here
这篇关于如何在bluej中使用lwjgl?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!