title: Loading docx file from resources folder in runnable jar
body: <p>I need to load an existing docx template and I would like to include the template file inside the jar so there would only be the jar file for the user.</p>
  
  <p>I've tried the following ...</p>
  
  <pre><code>String inputfilepath = (getClass().getResource("/letter.docx")).toString();
  
  WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage
              .load(new java.io.File(inputfilepath));
  </code></pre>
  
  <p>However, I think because .load(File) is expecting a File parameter it cannot load the docx. Is there a way to load the file for WordprocessingMLPackage from the resources folder?</p>
  
  <p>Thanks</p>