0
可能重複:
problem in loading class from 'me.prettyprint.hector.api.Serializer'ClassNotFoundException的: 'me.prettyprint.hector.api.Serializer'
我有可執行的JAR文件,但得到一些問題類未發現異常 當我鍵入命令時,
java -jar JarFileName.jar arguments...
我得到錯誤消息E,
Exception in thread "main" java.lang.NoClassDefFoundError: me/prettyprint/hector/api/Serializer
at someClassName.main(someClassName.java)
Caused by: java.lang.ClassNotFoundException: me.prettyprint.hector.api.Serializer
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 1 more
請告訴我解決上面...
你不喜歡只要答案:) – 2011-01-08 09:20:55