我得到一個java.lang.NoClassDefFoundError
當我運行這段代碼奇怪java.lang.NoClassDefFoundError錯誤
Exception in thread "main" java.lang.NoClassDefFoundError:
com/connexience/server/workflow/cloud/execution/DataProcessorServiceRunner
Caused by: java.lang.ClassNotFoundException:
com.connexience.server.workflow.cloud.execution.DataProcessorServiceRunner
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class:
com.connexience.server.workflow.cloud.execution.DataProcessorServiceRunner. Program will exit.
但我相信我可以在項目.classpath
文件中找到com/connexience/server/workflow/cloud/execution/DataProcessorServiceRunner
。
有人可以幫忙嗎?
歡呼聲, 桑迪
在classpath中是否存在一個JAR文件或目錄,其中包含目錄'com'? – EJP 2012-07-11 01:48:37