Install libpostgresql-jdbc-java by entering the following commands in the terminal:
sudo apt update sudo apt install libpostgresql-jdbc-java
Description:
Java database (JDBC) driver for PostgreSQL
PostgreSQL JDBC Driver allows Java programs to connect to a PostgreSQL database (8.4 or later) using standard, database independent Java code. It is an open source JDBC driver written in Pure Java (Type 4), and communicates in the PostgreSQL native network protocol.
Homepage: http://jdbc.postgresql.org/
Version: 9.4.1212-1
Section: universe/java