title: How to embed database derby in jar file
body: <p>I do not want to install a database server on target machine. It is possible  that we can simply ship a jar file with the database embedded in it, and not worry about installing a database server separately?<br>
  I created one application in netbeans using derby and it is working fine in my pc but when i am running on other machine it is giving me  <code>Error connecting to server localhost on port 1527 --&gt; this error says that there is no Database running on port 1527.</code>   but i dont want that the client should take more efforts to start DB server and all technical process. It should be simply runnable when i start application Derby DB should start and when i close DB should close.<br>
  So what will be the solution for my problem?<br>
  And one more Question is Can i use derby database for large scale projects? </p>