title: Access derby database in executable jar
body: <p>I have been looking for a while now but haven't found exactly what I want. So, I have a project written in Java and have created a small Derby database that I have embedded in the project. Now when creating an executable jar of the project, I cannot access the database anymore unless I put the derby database files in the same directory of where the executable jar is located. However, I do not want this, I really want that the database files are INSIDE the jar.</p>
  
  <p>I have tried to put the database files in a package and reference it like that, without any luck. Could someone point out how I can get this to work please?</p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT</strong>
  The goal here is that I want to create more than one executable JAR file and upload them to a Sun Grid Engine and execute each jar with different parameters. However, they all need to be able to access the database and until now I get an error when 1 application already booted the derby database, another application cannot access it. Therefor ALL jar files need to have their own database.</p>