title: How to access database from derby in the same directory as jar?
body: <p>I have developed a movie organizer program in Java with derby database. It works fine on my computer, however I couldn't figure out how to make it "portable" (only for my own use). </p>
  
  <p>My problem is, that if I use the</p>
  
  <pre><code>String url = "jdbc:derby://localhost/Movie";
  </code></pre>
  
  <p>code for the connection to the derby database, it is only working on my computer as it is the path specified directly to my Netbeans database location. I would like to put the Movie folder near the .jar file of the application and make it portable so I can use the same database everywhere.</p>
  
  <p>Any help would be appreciated on how could I achieve this. </p>