Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HypersonicSQL getConnection problem

0 views
Skip to first unread message

William Brogden

unread,
Oct 3, 2001, 12:30:01 PM10/3/01
to
I had this program running with HypersonicSQL v 1.4, but
with v 1.6.1 I get a No suitable driver exception when executing
the getConnection method.

I can create an instance of the driver:

driver: org.hsqldb.jdbcDriver@6930e2

but on trying to execute the following:

conn = DriverManager.getConnection(
"jdbc:HypersonicSQL:Errata","sa",""
);*/

I get:

Startup error java.sql.SQLException: No suitable driver
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:537)
at java.sql.DriverManager.getConnection(DriverManager.java:199)
at ErrataToSQL.<init>(ErrataToSQL.java:159)
at ErrataToSQL.main(ErrataToSQL.java:67)

Any suggestions appreciated.

--
WBB - wbro...@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2

William Brogden

unread,
Oct 5, 2001, 9:27:12 PM10/5/01
to
My bad - I had mixed up documentation between the two versions.
The correct statement uses this jdbc URL
"jdbc:hsqldb:hsql://localhost"
0 new messages