Re: PostgreSQL-JDBC driver - Mailing list pgsql-hackers

From Peter T Mount
Subject Re: PostgreSQL-JDBC driver
Date
Msg-id 985174003.3ab88ff3bc7d0@webmail.retep.org.uk
Whole thread Raw
In response to PostgreSQL-JDBC driver  ("sourabh dixit" <sourabh.dixit@wipro.com>)
List pgsql-hackers
Quoting sourabh  dixit <sourabh.dixit@wipro.com>:

> 
> 
> -----
> 
> Hi,
> 
> I am trying to access PostGreSQL database running at the default port
> 5432
> using JDBC. But the application is giving error "Cannot find suitable
> driver". I have included JDBC driver JAR file in my CLASSPATH and
> Class.forName("org.postgresql.Driver") is loading driver successfully.
> Can anybody tell me how to go about to solve the problem?

Sounds like your URL is wrong. Make sure it begins with jdbc:postgresql:

Peter

-- 
Peter Mount peter@retep.org.uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Call for platforms
Next
From: "sourabh dixit"
Date:
Subject: Re: PostgreSQL-JDBC driver