运行jar应用程序错误

时间:2015-02-22 12:59:51

标签: java eclipse jar

我制作了一个应用并使用eclipse导出它:Export -> Java/Runnable JAR file

我选择了启动配置导出目标,并将包所需的库检入生成的JAR

当我使用java -jar C:\...\Desktop\name.jar在cmd中打开它时 我明白了:

Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at org.lwjgl.Sys$1.run(Sys.java:72)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
        at org.lwjgl.Sys.loadLibrary(Sys.java:96)
        at org.lwjgl.Sys.<clinit>(Sys.java:117)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
        at com.artframe.engine.main.Window.Create(Window.java:18)
        at com.artframe.engine.main.Main.main(Main.java:42)
        ... 5 more

0 个答案:

没有答案