hsqldb on Mac OS X

It took me a while googling how to run hsqldb on Mac OS X. It turned out very easy when I looked back at its runners for Windows:

runServer.bat
1
2
cd ..\data
@java -classpath ../lib/hsqldb.jar org.hsqldb.server.Server %1 %2 %3 %4 %5 %6 %7 %8 %9

Get it running on OS X just by typing it on Terminal, or create a runServer.sh file and run it anywhere.

runServer.sh
1
2
cd path/to/hsqldb/data
java -cp ../lib/hsqldb.jar org.hsqldb.server.Server