title: Loading jasperreports' .jrxml files
body: <p>In my project I have stored .jrxml files in a package called com/bio/ofm/mnu/views/reports/jasperReports/
  When I try to load a .jrxml I get following error,</p>
  
  <pre><code>net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException: com/bio/ofm/mnu/views/reports/jasperReports/repAuditReport.jrxml (No such file or directory)
          at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:174)
          at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:154)
          at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:146)
          at com.bio.ofm.mnu.views.panels.RepAuditReport$2.run(RepAuditReport.java:87)
          at java.lang.Thread.run(Thread.java:722)
  Caused by: java.io.FileNotFoundException: com/bio/ofm/mnu/views/reports/jasperReports/repAuditReport.jrxml (No such file or directory)
          at java.io.FileInputStream.open(Native Method)
          at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:138)
          at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:169)
          ... 4 more
  </code></pre>
  
  <p>This is how I load the file,</p>
  
  <pre><code>String fileName = getClass().getClassLoader().getResource("com/bio/ofm/mnu/views/reports/jasperReports/repAuditReport.jrxml").getFile();    
  
     JasperReport report = JasperCompileManager.compileReport("com/bio/ofm/mnu/views/reports/jasperReports/repAuditReport.jrxml");
  </code></pre>
  
  <p>please help</p>