Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

java.lang.ClassNotFoundException: org.postgresql.Driver

Eugene K
5 years ago Aug 11, 2016 12:46pm
Johannes Häyry
5 years ago Aug 12, 2016 5:41am
Eugene K
5 years ago Aug 12, 2016 5:45am
Eugene K
5 years ago Aug 12, 2016 1:46pm
Tom Rauchenwald
5 years ago Aug 12, 2016 3:59pm

Why don't you add a maven dependency on the driver? Like

<dependency>
    <groupId>postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>9.1-901-1.jdbc4</version>
</dependency>

for example.
Anyway, I'm not an eclipse expert, but you need the driver in the runtime classpath, I suspect that's the problem.
Eclipse has this run configuration thingy, I guess you need to add it there somewhere.