no lwjgl in java.library.path in playN hello sample

本小妞迷上赌 提交于 2019-12-12 16:28:04

问题


I'm having an error trying to run java playN project. The other ons seems to be fine. The error is: Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path.

There is dependencied library lwjgl 2.83 in the project. Whatis wrong here?


回答1:


While you have the java dependency, you don't have the native library.

You'll need to download lwjgl from http://www.lwjgl.org/, unpack and set up according to http://www.lwjgl.org/wiki/index.php?title=Main_Page#Getting_started

TL;DR: Once you have your plattform's libraries extracted you need to point Java there using the following as VM Parameters:

-Djava.library.path=[Path/To/Libs]

I think if you run it with maven instead, it should work out of the box (maybe)

/Edit: or follow this instruction: How to fix java.lang... it doesn't depend on your own downloaded libraries but fetches them using maven.




回答2:


Here you can see how to setup it in Eclipse.

Great Tutorial



来源:https://stackoverflow.com/questions/11050099/no-lwjgl-in-java-library-path-in-playn-hello-sample

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