Описание тега classnotfoundexception

The Java exception thrown when an application tries to load a class by name but is not able to find the class.

The Java exception thrown when an application tries to load a class by name. Usually raised by one of:

  • the forName(String) method in class Class
  • the findSystemClass(String) method in class ClassLoader
  • the loadClass(String) method in class ClassLoader

when no definition for the class with the specified name could be found in the classpath.

Don't confuse it with /questions/tagged/noclassdeffounderror, it's a different kind of error, see the following links for more details: