Loading the Driver
Before creating a database connection, you need to load the database driver first.
Method for loading the JDBC driver:
If you are using the
postgresql.jarpackage, pass the parameter at JVM startup:java -Djdbc.drivers=org.postgresql.Driver jdbctestIf you are using the
openGauss-jdbc-x.x.x.jarpackage, pass the parameter at JVM startup:java -Djdbc.drivers=org.opengauss.Driver jdbctestNOTE
jdbctestis the test program name.