Jet Waitforit Torres
Jet Waitforit Torres

Reputation: 161

How to view postgres on the hsql database manager

Mmm. I put the postgre jar on the lib folder of hsql database manager but then I tried to use the database manager an error occurs "java.lang.ClassNotFoundException:org.postgresql.Driver".

Upvotes: 0

Views: 167

Answers (1)

fredt
fredt

Reputation: 24352

It is not enough to put the jar in the lib folder. You need to include the jar in the command line that you use to execute DatabaseManager. An example for Windows below:

java -cp /path/to/hsqldb.jar;/path/to/postgres/pg.jdbc3.jar org.hsqldb.util.DatabaseManagerSwing

Upvotes: 1

Related Questions