Class.forName() 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.security.AccessController.doPrivileged
(source)
at java.net.URLClassLoader.findClass
(source)
at java.lang.ClassLoader.loadClass
(source)
at java.lang.ClassLoader.loadClass
(source)
at java.lang.Class.forName0
(source)
at java.lang.Class.forName
(source)
6 frames hidden

Typical Exception Messages

  1. org.gjt.mm.mysql.Driver
  2. com.mongodb.hadoop.streaming.MongoStreamJob
  3. hudson.plugins.view.dashboard.DashboardPortlet
  4. javax.mail.internet.MimeMessage
  5. -libjars
  6. com.mysql.jdbc.Driver
  7. org.apache.giraph.lib.JsonBase64VertexInputFormat
  8. org.jnp.interfaces.NamingContextFactory
  9. -D
  10. oracle.jdbc.pool.OracleDataSource

Origin

Class.forName0() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
5 frames hidden
java.lang.Class.forName0
202Web pages

Specific cases

External results for this pattern (200)

  1. Dawid Loubservia Google Groups2 weeks ago
    com.travellinck.communication.ftp.FileTransferRequest
    Show stack trace
  2. Sandrine Beauchevia Google Groups2 weeks ago
    com.sun.jini.reggie.ConstrainableRegistrarProxy
    Show stack trace
  3. Unknown authorvia grokbase.com1 month ago
    de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory
    Show stack trace
  4. jonvia Stack Overflow1 month ago
    oracle.jdbc.pool.OracleDataSource
    Show stack trace
  5. Unknown authorvia coderanch.com1 month ago
    org.springframework.instrument. classloading.tomcat.TomcatInstrumentableClassLoader
    Show stack trace
  6. Prasad K Tvia Oracle Community1 month ago
    oracle.dms.wls.DMSStartup
    Show stack trace
  7. karxvia Stack Overflow1 month ago
    com.mysql.jdbc.jdbc2.optional.MysqlDataSource
    Show stack trace
  8. Unknown authorvia nabble.com1 month ago
  9. everson santosvia juddi-user1 month ago
    org.jboss.samples.webservice.HelloWorld
    Show stack trace
  10. everson santosvia juddi-user1 month ago
    org.jboss.samples.webservice.HelloWorld
    Show stack trace