title: Starting hsqldb database programmatically
body: <p>I want to programmatically start HSQLdb server.
  I create a runnable like below and then start it in a thread.</p>
  
  <pre><code>   Runnable hsqlRunnable = new Runnable() {
                  public void run()
                  {
  
                      HsqlProperties props = new HsqlProperties();
                      props.setProperty("server.database.0", "file:C:\Documents and Settings\BThirup\Application Data\Rockwell Automation\FactoryTalk ProductionCentre\logs\ApplicationLog\mydb;shutdown=true;");
                      props.setProperty("server.dbname.0", "xdb");
  org.hsqldb.Server server = new org.hsqldb.Server();
  
                      try {
                          server.setProperties(props);
                      } catch (Exception e) {
                          return;
                      }
  
                      server.start();
  }
  }
  </code></pre>
  
  <p>I get the error: 
  [Thread[HSQLDB Server @4db602,6,main]]: Shutting down because there are no open databases</p>
  
  <p>Can anyone help point out where I am going wrong.</p>
  
  <p>Thanks for helping
  Bala</p>