ClassNotFoundException NoClassDefFoundError

来源:互联网 发布:iphone展示机软件 编辑:程序博客网 时间:2024/06/11 03:18

ClassNotFoundException :

      Thrown when an application tries to load in a class through its string name using:

  1. Class.forName()
  2. ClassLoader.findSystemClass()
  3. ClassLoader.loadClass()

      but no definition for the class with the specified name could be found.

NoClassDefFoundError:

      Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using thenew expression) 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.

原创粉丝点击