另外如果你的狀況是有出現錯誤訊息如... public class NoClassDefFoundError ... 那原因跟說明如下...
extends LinkageError Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class and no definition of the class could be found.
The searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found.