我從netbeans創建了一個可執行的jar。點擊該罐子不起作用。所以我在命令行使用了以下內容:java -jar「TestEye.jar」查看任何問題。netbeans內的應用程序工作,但分發罐不工作
這必須在NetBeans中設置問題。如果你有解決方案。我會很感激。
Catched FileNotFoundException:
C:\Users\Engineer101\Documents\NetBeansProjects\TestEye\dist\lib\gluegen-rt-natives-windows-
amd64.jar
(The system cannot find the file specified), while TempJarCache.bootstrapNativeLib() of
jar:file:/C:/Users/Engineer101/Documents/NetBeansProjects/TestEye/dist/lib/gluegen-rt-natives
windows-amd64.jar!/ (file:/C:/Users/Engineer101/Documents/NetBeansProjects/TestEye
/dist/lib/ + gluegen-rt-natives-windows-amd64.jar)
Exception in thread "main" java.lang.UnsatisfiedLinkError: no gluegen-rt 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 com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:442)
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:59)
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary
(JNILibLoaderBase.java:90)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:328)
at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary
(DynamicLibraryBundle.java:390)
at com.jogamp.common.os.Platform.loadGlueGenRTImpl(Platform.java:251)
at com.jogamp.common.os.Platform.access$000(Platform.java:57)
at com.jogamp.common.os.Platform$1.run(Platform.java:186)
at com.jogamp.common.os.Platform$1.run(Platform.java:183)
at java.security.AccessController.doPrivileged(Native Method)
at com.jogamp.common.os.Platform.<clinit>(Platform.java:183)
at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:82)
at gov.nasa.worldwind.Configuration.getMaxCompatibleGLProfile
(Unknown Source)
at gov.nasa.worldwind.awt.WorldWindowGLCanvas.getCaps(Unknown Source)
at gov.nasa.worldwind.awt.WorldWindowGLCanvas.<init>(Unknown Source)
at gov.nasa.worldwindx.examples.ApplicationTemplate$AppPanel.createWorld
Window(Unknown Source)
at gov.nasa.worldwindx.examples.ApplicationTemplate$AppPanel.<init>
(Unknown Source)
at gov.nasa.worldwindx.examples.ApplicationTemplate$AppFrame.
createAppPanel(Unknown Source)
at gov.nasa.worldwindx.examples.ApplicationTemplate$AppFrame.initialize
(Unknown Source)
at gov.nasa.worldwindx.examples.ApplicationTemplate$AppFrame.<init>
(Unknown Source)
at TestEye.TestEye$AppFrame.<init>(TestEye.java:75)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at gov.nasa.worldwindx.examples.ApplicationTemplate.start
(Unknown Source)
at TestEye.TestEye.main(TestEye.java:209)
確保您通過-cp或-classpath參數獲得所有依賴的jar。 –
看起來更像是你沒有包含在dist目錄內運行程序 – MadProgrammer