Can't find class of postgresql driverJava inner class and static nested classPostgreSQL “DESCRIBE TABLE”Show tables in PostgreSQLHow to exit from PostgreSQL command line utility: psqlWhich version of PostgreSQL am I running?Exception in thread “main” java.lang.ClassNotFoundException: org.h2.DriverHow to connect to mysql database using java?How to connect my Java applicationan to an Oracle databasejava.net.URLClassLoader.findClass(Unknown Source)Add jdbc postgre driver to jar
How to emphasise the insignificance of someone/thing – besides using "klein"
Talk interpreter
Is there an in-universe explanation given to the senior Imperial Navy Officers as to why Darth Vader serves Emperor Palpatine?
Is the Amazon rainforest the "world's lungs"?
Federal Pacific 200a main panel problem with oversized 100a 2pole breaker
Drawing probabilities on a simplex in TikZ
Can I create something like a macro in Numbers?
Why does this London Underground poster from 1924 have a Star of David atop a Christmas tree?
Many many thanks
How to force GCC to assume that a floating-point expression is non-negative?
How to determine algebraically whether an equation has an infinite solutions or not?
Is there a word or phrase that means "use other people's wifi or Internet service without consent"?
Units in general relativity
Should I use the words "pyromancy" and "necromancy" even if they don't mean what people think they do?
Half filled water bottle
To what extent should we fear giving offense?
Pen test results for web application include a file from a forbidden directory that is not even used or referenced
Term used to describe a person who predicts future outcomes
助けてくれて有難う meaning and usage
Does trying to charm an uncharmable creature cost a spell slot?
Is the internet in Madagascar faster than in UK?
How to pass 2>/dev/null as a variable?
Are strlen optimizations really needed in glibc?
Unlock your Lock
Can't find class of postgresql driver
Java inner class and static nested classPostgreSQL “DESCRIBE TABLE”Show tables in PostgreSQLHow to exit from PostgreSQL command line utility: psqlWhich version of PostgreSQL am I running?Exception in thread “main” java.lang.ClassNotFoundException: org.h2.DriverHow to connect to mysql database using java?How to connect my Java applicationan to an Oracle databasejava.net.URLClassLoader.findClass(Unknown Source)Add jdbc postgre driver to jar
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm trying to use HikariCP library for PostgreSQL connection pools in Java. I am using Maven, and I'm getting this error: java.lang.ClassNotFoundException: org.postgresql.Driver
.
I have tried using different versions of the PostgreSQL driver, but none have worked to my advantage. (I have done more, but I've been faced with this problem, that I have not taken note of)
org.postgresql.ds.PGSimpleDataSource
, org.postgresql.Driver
and com.impossibl.postgres.jdbc.PGDataSource
still produce this error, even though it is said in the HikariCP guide to use either the first or third. The second I found from research.
My maven:
(...)
<build>
<defaultGoal>clean package</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<repositories>
<repository>
<id>spigotmc-repo</id>
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.12.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>3.3.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.5</version>
</dependency>
</dependencies>
</project>
What I'm using to produce this error:
try
Class.forName("org.postgresql.Driver");
catch (ClassNotFoundException e)
e.printStackTrace();
System.out.println("Failed to load.");
HikariConfig config = new HikariConfig("database.properties");
ds = new HikariDataSource(config);
(The constructor HikariDataSource(config);
produces this error aswell)
I believe the reason why this is happening is that the driver is not being made into the classpath - however, all efforts I have tried can't seem to do this. This problem of the driver not being in the final jar (to my belief):
.
Actual error:
[20:16:35 WARN]: java.lang.ClassNotFoundException: org.postgresql.Driver
[20:16:35 WARN]: at java.net.URLClassLoader.findClass(Unknown Source)
[20:16:35 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:152)
[20:16:35 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100)
[20:16:35 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
[20:16:35 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
[20:16:35 WARN]: at java.lang.Class.forName0(Native Method)
[20:16:35 WARN]: at java.lang.Class.forName(Unknown Source)
[20:16:35 WARN]: at me.test.kitpvp.Kitpvp.onEnable(Kitpvp.java:43)
[20:16:35 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[20:16:35 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
(...)
[20:16:35 INFO]: Failed to load.
[20:16:35 WARN]: 74 [Server thread] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
Edits
- Adding
<scope>compile</scope>
produced same results - did not work.
java postgresql hikaricp
add a comment |
I'm trying to use HikariCP library for PostgreSQL connection pools in Java. I am using Maven, and I'm getting this error: java.lang.ClassNotFoundException: org.postgresql.Driver
.
I have tried using different versions of the PostgreSQL driver, but none have worked to my advantage. (I have done more, but I've been faced with this problem, that I have not taken note of)
org.postgresql.ds.PGSimpleDataSource
, org.postgresql.Driver
and com.impossibl.postgres.jdbc.PGDataSource
still produce this error, even though it is said in the HikariCP guide to use either the first or third. The second I found from research.
My maven:
(...)
<build>
<defaultGoal>clean package</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<repositories>
<repository>
<id>spigotmc-repo</id>
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.12.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>3.3.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.5</version>
</dependency>
</dependencies>
</project>
What I'm using to produce this error:
try
Class.forName("org.postgresql.Driver");
catch (ClassNotFoundException e)
e.printStackTrace();
System.out.println("Failed to load.");
HikariConfig config = new HikariConfig("database.properties");
ds = new HikariDataSource(config);
(The constructor HikariDataSource(config);
produces this error aswell)
I believe the reason why this is happening is that the driver is not being made into the classpath - however, all efforts I have tried can't seem to do this. This problem of the driver not being in the final jar (to my belief):
.
Actual error:
[20:16:35 WARN]: java.lang.ClassNotFoundException: org.postgresql.Driver
[20:16:35 WARN]: at java.net.URLClassLoader.findClass(Unknown Source)
[20:16:35 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:152)
[20:16:35 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100)
[20:16:35 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
[20:16:35 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
[20:16:35 WARN]: at java.lang.Class.forName0(Native Method)
[20:16:35 WARN]: at java.lang.Class.forName(Unknown Source)
[20:16:35 WARN]: at me.test.kitpvp.Kitpvp.onEnable(Kitpvp.java:43)
[20:16:35 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[20:16:35 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
(...)
[20:16:35 INFO]: Failed to load.
[20:16:35 WARN]: 74 [Server thread] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
Edits
- Adding
<scope>compile</scope>
produced same results - did not work.
java postgresql hikaricp
Did you tried <scope>complie</scope> for the postgres depency in pom.xml?
– Stijn Leenknegt
Mar 27 at 20:45
@StijnLeenknegt <scope>compile</scope> in my pom.xml had the same result as without it - thanks for the fast response nevertheless.
– java
Mar 27 at 20:53
search.maven.org/artifact/org.postgresql/postgresql/42.2.5/… , try add the <type> tag...
– Stijn Leenknegt
Mar 27 at 20:56
That has made theorg.postgresql:postgresql:bundle:42.2.5
in the Maven tab in IntelliJ have a red line with the errorProblems: Unresolved dependency: 'org.postgresql:postgresql:bundle:42.2.5'
- I don't know how to resolve this.
– java
Mar 27 at 21:12
add a comment |
I'm trying to use HikariCP library for PostgreSQL connection pools in Java. I am using Maven, and I'm getting this error: java.lang.ClassNotFoundException: org.postgresql.Driver
.
I have tried using different versions of the PostgreSQL driver, but none have worked to my advantage. (I have done more, but I've been faced with this problem, that I have not taken note of)
org.postgresql.ds.PGSimpleDataSource
, org.postgresql.Driver
and com.impossibl.postgres.jdbc.PGDataSource
still produce this error, even though it is said in the HikariCP guide to use either the first or third. The second I found from research.
My maven:
(...)
<build>
<defaultGoal>clean package</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<repositories>
<repository>
<id>spigotmc-repo</id>
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.12.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>3.3.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.5</version>
</dependency>
</dependencies>
</project>
What I'm using to produce this error:
try
Class.forName("org.postgresql.Driver");
catch (ClassNotFoundException e)
e.printStackTrace();
System.out.println("Failed to load.");
HikariConfig config = new HikariConfig("database.properties");
ds = new HikariDataSource(config);
(The constructor HikariDataSource(config);
produces this error aswell)
I believe the reason why this is happening is that the driver is not being made into the classpath - however, all efforts I have tried can't seem to do this. This problem of the driver not being in the final jar (to my belief):
.
Actual error:
[20:16:35 WARN]: java.lang.ClassNotFoundException: org.postgresql.Driver
[20:16:35 WARN]: at java.net.URLClassLoader.findClass(Unknown Source)
[20:16:35 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:152)
[20:16:35 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100)
[20:16:35 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
[20:16:35 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
[20:16:35 WARN]: at java.lang.Class.forName0(Native Method)
[20:16:35 WARN]: at java.lang.Class.forName(Unknown Source)
[20:16:35 WARN]: at me.test.kitpvp.Kitpvp.onEnable(Kitpvp.java:43)
[20:16:35 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[20:16:35 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
(...)
[20:16:35 INFO]: Failed to load.
[20:16:35 WARN]: 74 [Server thread] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
Edits
- Adding
<scope>compile</scope>
produced same results - did not work.
java postgresql hikaricp
I'm trying to use HikariCP library for PostgreSQL connection pools in Java. I am using Maven, and I'm getting this error: java.lang.ClassNotFoundException: org.postgresql.Driver
.
I have tried using different versions of the PostgreSQL driver, but none have worked to my advantage. (I have done more, but I've been faced with this problem, that I have not taken note of)
org.postgresql.ds.PGSimpleDataSource
, org.postgresql.Driver
and com.impossibl.postgres.jdbc.PGDataSource
still produce this error, even though it is said in the HikariCP guide to use either the first or third. The second I found from research.
My maven:
(...)
<build>
<defaultGoal>clean package</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<repositories>
<repository>
<id>spigotmc-repo</id>
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.12.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>3.3.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.5</version>
</dependency>
</dependencies>
</project>
What I'm using to produce this error:
try
Class.forName("org.postgresql.Driver");
catch (ClassNotFoundException e)
e.printStackTrace();
System.out.println("Failed to load.");
HikariConfig config = new HikariConfig("database.properties");
ds = new HikariDataSource(config);
(The constructor HikariDataSource(config);
produces this error aswell)
I believe the reason why this is happening is that the driver is not being made into the classpath - however, all efforts I have tried can't seem to do this. This problem of the driver not being in the final jar (to my belief):
.
Actual error:
[20:16:35 WARN]: java.lang.ClassNotFoundException: org.postgresql.Driver
[20:16:35 WARN]: at java.net.URLClassLoader.findClass(Unknown Source)
[20:16:35 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:152)
[20:16:35 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100)
[20:16:35 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
[20:16:35 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source)
[20:16:35 WARN]: at java.lang.Class.forName0(Native Method)
[20:16:35 WARN]: at java.lang.Class.forName(Unknown Source)
[20:16:35 WARN]: at me.test.kitpvp.Kitpvp.onEnable(Kitpvp.java:43)
[20:16:35 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[20:16:35 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
(...)
[20:16:35 INFO]: Failed to load.
[20:16:35 WARN]: 74 [Server thread] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
Edits
- Adding
<scope>compile</scope>
produced same results - did not work.
java postgresql hikaricp
java postgresql hikaricp
edited Mar 27 at 20:54
java
asked Mar 27 at 20:37
javajava
676 bronze badges
676 bronze badges
Did you tried <scope>complie</scope> for the postgres depency in pom.xml?
– Stijn Leenknegt
Mar 27 at 20:45
@StijnLeenknegt <scope>compile</scope> in my pom.xml had the same result as without it - thanks for the fast response nevertheless.
– java
Mar 27 at 20:53
search.maven.org/artifact/org.postgresql/postgresql/42.2.5/… , try add the <type> tag...
– Stijn Leenknegt
Mar 27 at 20:56
That has made theorg.postgresql:postgresql:bundle:42.2.5
in the Maven tab in IntelliJ have a red line with the errorProblems: Unresolved dependency: 'org.postgresql:postgresql:bundle:42.2.5'
- I don't know how to resolve this.
– java
Mar 27 at 21:12
add a comment |
Did you tried <scope>complie</scope> for the postgres depency in pom.xml?
– Stijn Leenknegt
Mar 27 at 20:45
@StijnLeenknegt <scope>compile</scope> in my pom.xml had the same result as without it - thanks for the fast response nevertheless.
– java
Mar 27 at 20:53
search.maven.org/artifact/org.postgresql/postgresql/42.2.5/… , try add the <type> tag...
– Stijn Leenknegt
Mar 27 at 20:56
That has made theorg.postgresql:postgresql:bundle:42.2.5
in the Maven tab in IntelliJ have a red line with the errorProblems: Unresolved dependency: 'org.postgresql:postgresql:bundle:42.2.5'
- I don't know how to resolve this.
– java
Mar 27 at 21:12
Did you tried <scope>complie</scope> for the postgres depency in pom.xml?
– Stijn Leenknegt
Mar 27 at 20:45
Did you tried <scope>complie</scope> for the postgres depency in pom.xml?
– Stijn Leenknegt
Mar 27 at 20:45
@StijnLeenknegt <scope>compile</scope> in my pom.xml had the same result as without it - thanks for the fast response nevertheless.
– java
Mar 27 at 20:53
@StijnLeenknegt <scope>compile</scope> in my pom.xml had the same result as without it - thanks for the fast response nevertheless.
– java
Mar 27 at 20:53
search.maven.org/artifact/org.postgresql/postgresql/42.2.5/… , try add the <type> tag...
– Stijn Leenknegt
Mar 27 at 20:56
search.maven.org/artifact/org.postgresql/postgresql/42.2.5/… , try add the <type> tag...
– Stijn Leenknegt
Mar 27 at 20:56
That has made the
org.postgresql:postgresql:bundle:42.2.5
in the Maven tab in IntelliJ have a red line with the error Problems: Unresolved dependency: 'org.postgresql:postgresql:bundle:42.2.5'
- I don't know how to resolve this.– java
Mar 27 at 21:12
That has made the
org.postgresql:postgresql:bundle:42.2.5
in the Maven tab in IntelliJ have a red line with the error Problems: Unresolved dependency: 'org.postgresql:postgresql:bundle:42.2.5'
- I don't know how to resolve this.– java
Mar 27 at 21:12
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55386044%2fcant-find-class-of-postgresql-driver%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55386044%2fcant-find-class-of-postgresql-driver%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you tried <scope>complie</scope> for the postgres depency in pom.xml?
– Stijn Leenknegt
Mar 27 at 20:45
@StijnLeenknegt <scope>compile</scope> in my pom.xml had the same result as without it - thanks for the fast response nevertheless.
– java
Mar 27 at 20:53
search.maven.org/artifact/org.postgresql/postgresql/42.2.5/… , try add the <type> tag...
– Stijn Leenknegt
Mar 27 at 20:56
That has made the
org.postgresql:postgresql:bundle:42.2.5
in the Maven tab in IntelliJ have a red line with the errorProblems: Unresolved dependency: 'org.postgresql:postgresql:bundle:42.2.5'
- I don't know how to resolve this.– java
Mar 27 at 21:12