The current release supports Java 8+.
If you're using Maven, then edit your project's "pom.xml" and add this to the <dependencies>
section:
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
We will create a container to run our postgresql database engine.
docker run --name some-postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=db_countries -d postgres:alpine3.18