Problem with postgresql jdbc package examples
Hello,
I downloaded the postgresql packages and the jdbc stuff and am trying to
get the included examples working. I get the following message when I
run the "basic" example in the jdbc package.
Connecting to Database URL = jdbc.postgresql://dragonknoll:5432/doug
Exception caught.
java.sql.SQLException: No suitable driver
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at example.basic.<init>(basic.java:34)
at example.basic.main(basic.java:168)
Does this mean there is a problem with the driver? The postgresql.jar
file is in the classpath. The linux system I am using is called
dragonknoll and it should be using the default port of 5432.
Any thoughts on what is going wrong?
Thanks,
Doug
Reply to: