程序在导出时不起作用

时间:2016-01-30 09:23:37

标签: java eclipse jar export

我做了一些小游戏,我想导出它。我将它导出为可运行的JAR文件但是当我尝试打开它时没有任何反应。我正在使用几个外部库(slick,jinput,jogg,jorbis和jwjgl)。有人可以帮助我让我的程序工作吗?这是我的错误屏幕:

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(JarRsrcLoader.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:73)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
    at org.lwjgl.Sys.loadLibrary(Sys.java:95)
    at org.lwjgl.Sys.<clinit>(Sys.java:112)
    at org.lwjgl.openal.AL.<clinit>(AL.java:59)
    at org.newdawn.slick.openal.SoundStore$1.run(SoundStore.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.newdawn.slick.openal.SoundStore.init(SoundStore.java:292)
    at org.newdawn.slick.Sound.<init>(Sound.java:54)
    at com.pitcher654.main.AudioPlayer.load(AudioPlayer.java:18)
    at com.pitcher654.main.Game.<init>(Game.java:60)
    at com.pitcher654.main.Game.main(Game.java:317)
    ... 5 more

0 个答案:

没有答案