No suitable driver found exception - Mailing list pgsql-jdbc

From Amanda K. Martino
Subject No suitable driver found exception
Date
Msg-id 3C599DB4.812CA1F@mitre.org
Whole thread Raw
Responses Re: No suitable driver found exception  ("Dave Cramer" <Dave@micro-automation.net>)
Re: No suitable driver found exception  ("Nick Fankhauser" <nickf@ontko.com>)
List pgsql-jdbc
Hello,

I have a simple java class (myTest.java) that I'm trying to run. This
class uploads an RDFS schema into a postgresql database using three
methods: setAuthentication, which specifies the username and password
used to gain access to the database, setDBFunctionsPath, which specifies
the library containing the functions to actually store the RDF, and
store, which takes as parameters the URL of the RDF schema to be loaded
into the database, and the URL of the database into which the schema
will be loaded. When I try to run the class, I'm getting the following
exception:
SQLException: No suitable driver
java.sql.SQLException: No suitable driver.

I have the postgresql.jar file in my classpath, as well the
jdbc7.1-1.2.jar which I downloaded from the postgresql.org's jdbc site.
I'm using Postgresql v7.1.3 and JDBC v2.0. I'd appreciate any
suggestions to resolve this issue that anyone has.

Thank you very much,
Amanda Martino
amartino@mitre.org


pgsql-jdbc by date:

Previous
From: "Dave Cramer"
Date:
Subject: Re: Foreign Keys and getImportedKeys(..)
Next
From: "Dave Cramer"
Date:
Subject: Re: No suitable driver found exception