java.lang.ClassNotFoundException: org.postgresql.Driver


Samebug tips6

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.


8 months ago
Expert tip

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.


7 months ago
Expert tip

Solutions on the web1

Solution icon of stackoverflow
via Stack Overflow by vishal
, 9 months 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
Samebug visitor profile picture
Unknown user
Once, 1 month ago
3 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
1969 more bugmates