如何解决使用库导出Java-Project时出现问题
我有一个LWJGL项目,当我从Eclipse将其导出为Runnable Jar并选择将提取的库提取到生成的Jar中时,它不起作用! 当我使用java -jar export.jar从cmd运行它时 它会产生一个错误:
[LWJGL] Failed to load a library. Possible solutions:
a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
b) Add the JAR that contains the shared library to the classpath.
[LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
Exception in thread "Render-Thread" java.lang.UnsatisfiedLinkError: Failed to locate library: lwjgl.dll
at org.lwjgl.system.Library.loadSystem(Library.java:162)
at org.lwjgl.system.Library.loadSystem(Library.java:62)
at org.lwjgl.system.Library.<clinit>(Library.java:50)
at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:97)
at org.lwjgl.system.Pointer$Default.<clinit>(Pointer.java:67)
at org.lwjgl.system.Callback.<clinit>(Callback.java:41)
at strobe.window.Window.<init>(Window.java:40)
at strobe.app.RenderThread.run(RenderThread.java:28)
有人知道我在做错什么吗?
在LWJGL 2中,我一直使用JarSplice导出,但是我没有任何本地人,所以不知道它在这里如何工作。它可能是简单的问题,原因是我真的不知道如何导出带库的Java项目。 顺便说一句。它不是Gradle或Maven项目。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。