Postgresql connection with JDBC in eclipse

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)
    
asked by anonymous 26.11.2018 / 04:53

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 JDBC URL of the form     jdbc: postgresql: // or using an application specific method.

See the PgJDBC documentation: link

This command has had no effect.

    
26.11.2018 / 05:27