java.lang.ClassNotFoundException

org.postgresql.Driver


Samebug tips5

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 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.

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web150

Solution icon of github
org.postgresql.Driver

Solution icon of github
via GitHub by jcflack
, 1 year ago
org.postgresql.Driver

Solution icon of googlegroups
org.postgresql.Driver

Solution icon of googlegroups
via Google Groups by bal...@gmail.com, 1 year ago
org.postgresql.Driver

Solution icon of googlegroups
org.postgresql.Driver

Solution icon of googlegroups
via Google Groups by lancelot, 1 month ago
org.postgresql.Driver

Solution icon of googlegroups
org.postgresql.Driver

Solution icon of googlegroups
via Google Groups by Becerra Lagos Ana Lilian, 1 week ago
org.postgresql.Driver

Solution icon of googlegroups
via Google Groups by Unknown author, 1 week ago
org.postgresql.Driver

Solution icon of jboss
via JBoss Issue Tracker by nmatrix nmatrix, 1 year ago
org.postgresql.Driver

Stack trace

  • java.lang.ClassNotFoundException: org.postgresql.Driver at java.lang.ClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at slick.util.ClassLoaderUtil$$anon$1.loadClass(ClassLoaderUtil.scala:12) at slick.jdbc.DriverDataSource$$anonfun$init$2.apply(DriverDataSource.scala:60) at slick.jdbc.DriverDataSource$$anonfun$init$2.apply(DriverDataSource.scala:58) at scala.Option.getOrElse(Option.scala:121)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 1 year ago
3 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 2 days ago
1945 more bugmates