What to do to make the HSQL driver working?

徘徊边缘 提交于 2019-12-03 20:05:19
nos

The HSQL driver is not in your classpath. You'll have to somehow include that driver jar file to it by running your program with java -cp .;hsqldb.jar DemoSelect. Use ':' as a separator instead of ';', if you're on *nix.

See also the documentation.

Clark Bao

The second try of yours is trying to connect to the network server. So, you have to start the network server first.

You can follow my answer in this post to play with the HSQL server.

paulsm4

Q: What could I be missing?

A: It sounds like you're missing the HSQL driver, or perhaps even HSQL itself :)

Q: Are you sure HSQL is successfully installed on your system? Have a look here.

Q: Are you including the HSQL JDBC driver in your classpath? Or, if you're using an IDE, do the "library" settings include the HSQL JDBC driver?

Here's a good link for adding 3rd party .jar files (like HDBC) to an Eclipse project.

And here's a link on different HSQL options for your JDBC connection.

Are you using Eclipse, Netbeans, or "something else"?

Javier del Castillo

For me, the problem was in the classpath. I'm working with eclipse tomcat and hslqdb.jar.

Select "run configurations..." -> tomcat server -> classpath -> user entries -> add jar

May be you forgot to add hsqldb.jar to classpath for the server.

This can also happen if you accidentally comment out hsql.jdbc.driver=org.hsqldb.jdbcDriver from your properties files. :-D

Xorsat

The IP address of the host PC should be used instead of localhost/127.0.0.1.

Just adding your mention stuff didnt help.

"Select "run configurations..." -> tomcat server -> classpath -> user entries -> add jar"

It was a good start but you MUST ALSO INCLUDE THE sqltool.jar.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!