title: Database file does not exist in Packed Jar File
body: <p>I have a JavaFX project using MS access as a database, after creating executable JAR in IntelliJ, while running the jar in CMD, i get the following exception</p>
  <pre><code>net.ucanaccess.jdbc.UcanaccessSQLException: UCAExc:::4.x.x given file does not exist: resource\Account_Record.accdb
      at net.ucanaccess.jdbc.UcanaccessDriver.connect(UcanaccessDriver.java:231)
      at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
      at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:251)
  </code></pre>
  <p>which indicateds the the database file is not reacheable by my following comection:</p>
  <pre><code>Class.forName(&quot;net.ucanaccess.jdbc.UcanaccessDriver&quot;);
          conn = DriverManager.getConnection(&quot;jdbc:ucanaccess://resource//Account_Record.accdb);
  </code></pre>
  <p>i have checked the Jar file, and yes it have the &quot;Account_Record.accdb&quot; inside it, and while running the JAR file inside IntelliJ IDE, i get no errors, but not able to make it stand alone !</p>