title: Export accessdb tables to csv
body: <p>Been working on a snippet of java code to export a few tables from an accessdb to CSVs. I want to deploy this code as a Lambda function. I've tried using Jackcess, but the following</p>
  <pre><code>        try {
              String dateOfExtraction = LocalDateTime.now().toString();
              Database db = DatabaseBuilder.open(new File(&quot;java-runtime/src/access_db_file.accdb&quot;));
              System.out.println(db.getTableNames());
              ExportUtil.exportFile(db, &quot;table_name&quot;, new File(&quot;table_name&quot; + dateOfExtraction + &quot;.csv&quot;));
          } catch (IOException e) {
              e.printStackTrace();
          }
  </code></pre>
  <p>throws the error:
  <code>java.io.FileNotFoundException: given file does not exist: C:\Users\john.doe.ctr\Desktop\Work\table_name</code></p>
  <p>I am running my code on a mac, this filepath is from the user that provided me with the DB. Is that some kind of permissions error? Should I just use UCanAccess instead? I can't use any of the UCanAccess command line tools, I have to run this in a lambda. The <code>System.out.println(db.getTableNames());</code> line works exactly as expected, and prints a list of all of the tablenames in the accessdb.</p>