Class.forName0() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
Javadoc
Thrown when an application tries to load in a class through its string name using:
  • The forName method in class Class.
  • The findSystemClass method in class ClassLoader .
  • The loadClass method in class ClassLoader.

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

As of release 1.4, this exception has been retrofitted to conform to the general purpose exception-chaining mechanism. The "optional exception that was raised while loading the class" that may be provided at construction time and accessed via the {@link #getException()} method is now known as the cause, and may be accessed via the {@link Throwable#getCause()} method, as well as the aforementioned "legacy method." @author unascribed @see java.lang.Class#forName(java.lang.String) @see java.lang.ClassLoader#findSystemClass(java.lang.String) @see java.lang.ClassLoader#loadClass(java.lang.String, boolean) @since JDK1.0

at java.net.URLClassLoader$1.run
at java.net.URLClassLoader$1.run
at java.security.AccessController.doPrivileged
(source)
at java.net.URLClassLoader.findClass
(source)
at java.lang.ClassLoader.loadClass
(source)
at sun.misc.Launcher$AppClassLoader.loadClass
(source)
at java.lang.ClassLoader.loadClass
(source)
at java.lang.Class.forName0
(source)
7 frames hidden

Typical Exception Messages

  1. com.mysql.jdbc.Driver
  2. mypackage.MyClass
  3. org.postgresql.Driver
  4. com.microsoft.sqlserver.jdbc.SQLServerDriver
  5. org.apache.mahout.math.Vector
  6. com.eviware.soapui.plugins.auto.factories.AutoImportMethodFactory
  7. sun.jdbc.odbc.JdbcOdbcDriver
  8. org.sqlite.JDBC
  9. oracle.jdbc.driver.OracleDriver
  10. oracle.jdbc.OracleDriver

Origin

Failed to load the class from current classpath

java.lang.ClassNotFoundException
6 frames hidden
java.lang.ClassLoader.loadClass
4054Web pages
1Solution

Similar

Specific cases

External results for this pattern (814)

  1. paulbakkervia GitHub1 week ago
    example.api.Conference
    Show stack trace
  2. bogdandrutuvia GitHub2 weeks ago
    io.grpc.override.ContextStorageOverride
    Show stack trace
  3. bogdandrutuvia GitHub1 month ago
    io.grpc.override.ContextStorageOverride
    Show stack trace
  4. com.eviware.soapui.plugins.auto.factories.AutoDiscoveryMethodFactory
    Show stack trace
  5. bouteillvia GitHub2 months ago
    com.martiansoftware.nailgun.examples.HelloWorld
    Show stack trace
  6. xf0516via GitHub3 months ago
    endpoint
    Show stack trace
  7. com.mysql.cj.jdbc.Driver
    Show stack trace