Class not found in classpath, for the class referenced in Class.forName() method

java.lang.NoClassDefFoundError
Javadoc
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 the new 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. @author unascribed @since JDK1.0

at java.lang.Class.forName0
(source)

Typical Exception Messages

  1. <No message>
  2. Could not initialize class sun.awt.X11GraphicsEnvironment
  3. Could not initialize class org.bytedeco.javacpp.avutil
  4. org/aspectj/lang/Signature
  5. com/jacob/com/ComFailException
  6. Could not initialize class sun.awt.X11.XToolkit
  7. javax/resource/ResourceException
  8. Could not initialize class com.liferay.samplestrutsliferay.struts.model.impl.ItemAModelImpl
  9. javax/transaction/SystemException
  10. sun/awt/motif/MToolkit

Specific cases

External results for this pattern (1182)

  1. ChromoXvia Google Groups2 days ago
    API/Ba
    Show stack trace
  2. pbvievia GitHub3 days ago
    org/vafer/jdeb/Console
    Show stack trace
  3. jbielervia GitHub1 week ago
    Could not initialize class org.intellij.images.fileTypes.impl.ImageFileTypeManagerImpl
    Show stack trace
  4. guikellervia GitHub1 week ago
    Could not initialize class org.bytedeco.javacpp.avutil
    Show stack trace
  5. guikellervia GitHub1 week ago
    Could not initialize class org.bytedeco.javacpp.avutil
    Show stack trace
  6. Yogesh Jagtapvia Google Groups2 weeks ago
    Could not initialize class net.hydromatic.optiq.jdbc.Driver
    Show stack trace
  7. Juan Rodríguez Hortalávia Google Groups2 weeks ago
    Could not initialize class net.hydromatic.optiq.jdbc.Driver
    Show stack trace
  8. Jeffpotato1via GitHub4 weeks ago
    java.lang.NoClassDefFoundError: Could not initialize class org.jurassicraft.JurassiCraft
    Show stack trace
  9. junaidrazzaq323via GitHub1 month ago
    Could not initialize class org.apache.calcite.jdbc.Driver
    Show stack trace
  10. 619808via Oracle Community2 months ago
    oracle/jbo/common/ws/WSRowSetIteratorBase
    Show stack trace