How can i use the lwjgl in bluej?

落花浮王杯 提交于 2019-12-10 12:09:57

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/29319154/how-can-i-use-the-lwjgl-in-bluej

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!