我从 netbeans 创建了一个可执行的 jar。单击罐子不起作用。所以我在命令行中使用了以下命令:java -jar "TestEye.jar" 来查看任何问题。
这必须是 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)