First, download the driver
Https://jdbc.postgresql.org/download.html
View the version of the native JDK in cmd, and then download the corresponding jar in the page above
Second, set environment variables
Java_home, PATH, CLASSPATH
System variables--environment variables-------Properties-------
Add the following configuration, if there is no new
1. installation directory for JAVA_HOME,JDK
2. PATH, add at the beginning;%java_home%\bin;%java_home%\jre\bin
3. CLASSPATH, join at the beginning.; %java_home%\lib;%java_home%\lib\tools.jar;d:\soft\jdbc\postgresql-9.4.1212.jre7.jar
Can be viewed by the set command in CMD, such as set Classpath
Attention:
1. Cannot appear in the environment variable Chinese
2. Do not add multiple different versions of the jar repeatedly
Third, the configuration in the PowerDesigner
Detailed Steps visible
Http://www.cnblogs.com/simpleZone/p/5489781.html
PowerDesigner in reverse PostgreSQL