When I run the .jar, I get a “No lwjgl in java.library.path” error

后端 未结 7 1421
傲寒
傲寒 2020-11-28 15:40

I\'m making a basic game in Java using the LWJGL Library via Netbeans.

I\'ve created a library with the lwjgl, lwjgl_util, and jinput .jar\'s, and I added -Djava.lib

7条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 15:50

    When I had this issue, it was because i accidentally put the argument to specify the location of the natives (-Djava.library.path=/native/) in the field called 'Arguments' under the run category of the options panel, instead of 'vm Options'. As seen here: http://s30.postimg.org/6f90akidt/Capture.png

提交回复
热议问题