Postgresql connection with JDBC in eclipse

Asked

Viewed 350 times

0

Appears on the console:

java.sql.SQLException: No suitable driver found for jdbc:AulaFBD://localhost:5432/TrabalhoFBD
    at java.sql.DriverManager.getConnection(DriverManager.java:689)
    at java.sql.DriverManager.getConnection(DriverManager.java:247)
    at conexao.<init>(conexao.java:19)
    at Principal.main(Principal.java:5)
  • Oia Erika, welcome to Stackoverflow PT, try to elaborate your question so that the community better understands your problem and can help you in a more appropriate way. I suggest you read https://answall.com/tour

1 answer

0

Now this message appears

Postgresql JDBC Driver 42.2.5 Found in: jar:file:/home/erikasfs/Downloads/postgresql-42.2.5%20(1). jar! /org/postgresql/Driver.class

The Pgjdbc driver is not an Executable Java program.

You must install it According to the JDBC driver installation Instructions for your application / container / appserver, then use it by specifying a JDBC URL of the form jdbc:postgresql:// or using an application specific method.

See the Pgjdbc Documentation: http://jdbc.postgresql.org/documentation/head/index.html

This command has had on Effect.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.