title: Access H2 Database from application contained in a JAR File
body: <p>I have an application which uses H2 database and the following Connection String:</p>
  
  <pre><code>Connection connection = DriverManager.getConnection("jdbc:h2:file:data/sample", "sa", "");
  </code></pre>
  
  <p>It works quite well under Eclipse, however if I package the Java Desktop application in a JAR file, it cannot find the H2 Database in data/sample any more. Here is the running directory:</p>
  
  <pre><code>application.jar
  data |
       sample.h2.db
  </code></pre>
  
  <p>And here is how I try to execute the application:</p>
  
  <pre><code>java -classpath .; -jar application.jar
  </code></pre>
  
  <p>A SQLException is raised as no tables are found. Any hint how could I have my Connection running into Eclipse and within a JAR file ? <br/>
  Please note that as requirement I should not use an absolute path for the database but a relative path, because the database folders are unzipped along with the jar files by the Application Installer.</p>