wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes Problems Starting HSQLDB server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Problems Starting HSQLDB server" Watch "Problems Starting HSQLDB server" New topic
Author

Problems Starting HSQLDB server

Deepika Saxena
Ranch Hand

Joined: Jul 05, 2009
Posts: 59
Hi,
I have downloaded HSQLDB and copied it to C:\hsqldb folder.
I added C:\hsqldb\lib\hsqldb.jar file to CLASSPATH and tried to run the server by C:\hsqldb\bin\runServer.bat, which is giving the following error.is there any thing left Apart from setting the CLASSPATH?
Please help me to resolve this issue.
Thanks in advance.
--Deepika.
Deepika Saxena
Ranch Hand

Joined: Jul 05, 2009
Posts: 59
Hi,
please find some more information on this issue.
HSQLDB : hsqldb-1.9.0-rc4.zip
OS : WinXP
JDk : jdk1.6.0_14
CLASSPATH setting: C:\set classpath="c:\hsqldb\lib\hsqldb.jar;.;"
*********************************************************
Error :is there any setting that i am missing? please help.
Thanks.
--Deepika.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10069
    
163

Where is the hsqldb.jar located and does it contain the org.hsqldb.Server class?


[My Blog] [JavaRanch Journal]
Tekchand Prasad
Ranch Hand

Joined: Oct 20, 2005
Posts: 32
Here hsqldb.jar build with java 1.4 so you have to rebuild it with java 1.6

steps
1. use command "ant jar" for rebuild hsqldb.jar it will create new hsqldb.jar and place it in lib folder

2. Use command "C:\hsqldb-1.9.0-rc4\hsqldb\bin>java -classpath ..\lib\hsqldb.jar org.hsqldb.util
.DatabaseManager" to run server

Thanks
Tekchand
Deepika Saxena
Ranch Hand

Joined: Jul 05, 2009
Posts: 59
Thanks jaikiran and Tekchand.
Jai, the jar file IS located in
c:\hsqldb\lib
folder. but it doesn't contain Server.class file.I followed all the steps that Tekchand suggested and regenerated the jar file.still the Servler.class is missing from the jar file and throwing the same exception kindly tell me how to get that class in the jar file.
Thanks for your valuable help.
--Deepika.
Tekchand Prasad
Ranch Hand

Joined: Oct 20, 2005
Posts: 32
Use command "C:\hsqldb-1.9.0-rc4\hsqldb\bin>java -classpath ..\lib\hsqldb.jar org.hsqldb.util
.DatabaseManager" to run server

and let me know if error comes
Deena Jeyachandran
Greenhorn

Joined: May 24, 2008
Posts: 18
In runServer.bat, the path of Server class is incorrect
Change it to org.hsqldb.server.Server and then run. It works


Preparing SCBCD.....
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Problems Starting HSQLDB server