playN中的java.library.path中没有lwjgl [英] no lwjgl in java.library.path in playN hello sample

查看:87
本文介绍了playN中的java.library.path中没有lwjgl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试运行java playN项目时遇到错误.另一个似乎很好.错误是:线程"main"中的异常java.lang.UnsatisfiedLinkError:java.library.path中没有lwjgl.

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.

项目中有相关的库lwjgl 2.83.怎么了?

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

推荐答案

虽然具有Java依赖项,但没有本机库.

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

您需要从 http://www.lwjgl.org/下载lwjgl,然后解压缩并根据 http://www.lwjgl.org/wiki/index进行设置.php?title = Main_Page#Getting_started

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:解压缩平台的库后,需要使用以下VM参数将Java指向那里:

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]

我认为,如果您改为使用maven运行它,则它应该是开箱即用的(也许)

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

/或按照以下说明进行操作: 如何修复java.lang ... 它不依赖于您自己下载的库,而是使用maven来获取它们.

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

这篇关于playN中的java.library.path中没有lwjgl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆