Loading the postgreSQL JDBC driver

后端 未结 3 1029
我寻月下人不归
我寻月下人不归 2021-01-22 20:48

I am trying to load a JDBC postgreSQL driver for a Java program. I know this is all over the Internet. I have tried many solutions, but none of them have worked for me.

3条回答
  •  温柔的废话
    2021-01-22 21:27

    On Linux execute following:

    javac -cp '.:postgresql-9.1-901.jdbc4.jar' postgresjavatest.java

    java -cp '.:postgresql-9.1-901.jdbc4.jar' postgresjavatest

    It will jdbc drivers for you. make sure jar file is on same location

提交回复
热议问题