Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. Class.forName() has thrown a ClassNotFoundException
    Java Runtime
    277
    244
    36
  2. ClassLoader.loadClass() has thrown a ClassNotFoundException
    Java Runtime
    1990
    2009
    208

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.ClassNotFoundException: org.postgresql.Driver
2 matching frames hidden
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
2 frames hidden

Solution

rafael1 year ago

A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line with java -cp yourClassPath or at your IDE if you're using one.

Check the source of this solution for more info

External results for this pattern (10)

  1. jam7via GitHub3 weeks ago
    com/sun/image/codec/jpeg/ImageFormatException
    Show stack trace
  2. miranosvia GitHub3 weeks ago
    org.bouncycastle.jce.provider.Bounc yCastleProvider
    Show stack trace
  3. zouljavia GitHub3 weeks ago
    org.apache.batik.apps.rasterizer.SVGConverter
    Show stack trace
  4. jobastovia GitHub3 weeks ago
    org.scilab.forge.jlatexmath.TeXFormula
    Show stack trace
  5. jpenn84via GitHub3 weeks ago
    org/slf4j/event/LoggingEvent
    Show stack trace
  6. shamsasarivia GitHub3 weeks ago
  7. Sir4ur0nvia GitHub3 weeks ago
    eta/text/Utils
    Show stack trace
  8. bbarkervia GitHub3 weeks ago
    com/bulletphysics/collision/broadphase/OverlapFilterCallback
    Show stack trace
  9. parfenukvia GitHub3 weeks ago
    scala.collection.Seq
    Show stack trace
  10. Inuyashahanvia GitHub3 weeks ago
    BimServer
    Show stack trace