title: open pdf file located in a ressource folder
body: <p>I'm trying to open a pdf located in a  ressource folder with my application. 
  It does work on the emulator but nothing happens when I try on the exported application. 
  I'm guessing I'm not using the rigth path but do not see where I'm wrong. The getRessource method works very well with my images.</p>
  
  <p>Here is a code snippet :</p>
  
  <pre><code>public void openPdf(String pdf){
      if (Desktop.isDesktopSupported()) {
          try {
              URL monUrl  = this.getClass().getResource(pdf);
              File myFile = new File(monUrl.toURI());
              Desktop.getDesktop().open(myFile);
  
  
          } catch (IOException ex) {
              // no application registered for PDFs
  
          } catch (URISyntaxException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>I'm referring to the pdf variable this way : "name_of_the_file.pdf"</p>
  
  <p>Edit: I've pasted the whole method</p>