title: HSQLDB issue: Starting the HSQL database from Java Code
body: <p>when I have to run  HSQLDB for my application i have to do it from command prompt, so I always double-click the Server.bat (batch file) to start the server which contain:</p>
  
  <pre><code>java -classpath ..\war\WEB-INF\lib\hsqldb.jar org.hsqldb.Server -database test
  </code></pre>
  
  <p>or type the start server command from command prompt.</p>
  
  <p>But, my question is that can I start the HSQL database server by coding in my java code directly, no need to start it separately from the java application? what will be the code?</p>
  
  <p>Note that I am using spring 2.5, spring seecurity 2.0.4 (annotation disable).</p>
  
  <p>Thank you.</p>