-1
我在嘗試運行打印機示例時遇到了問題。 當我嘗試運行的類服務器它打印在ubuntu上運行ice時出錯(java)
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: Ice/LocalException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: Ice.LocalException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
什麼,我一直在尋找它是由類路徑出口造成的? I did export CLASSPATH=$CLASSPATH:./classes:$ICE_HOME/share/java/ice.jar
ICE_HOME是/ usr。
有誰知道如何解決?謝謝
可能的重複.http://stackoverflow.com/questions/28922512/how-to-resolve-this-jni-error-when-trying-to-run-lwjgl-hello-world – denny
問題有點不同的是,我做的是正確的事情,它只是被刪除,但idk爲什麼 – heav1811