FileNotFoundException while I am using jasper report

后端 未结 4 1998
说谎
说谎 2021-01-06 19:10

I am trying to create Jasper Report in Liferay portlet but I am getting below error:

   Caused by: net.sf.jasperreports.engine.JRException: java.io.FileNotF         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-06 19:34

    OK.Guys this worked for me

      ***con=DBConnection.getConnection();
      JasperPrint  jp = JasperManager.fillReport(.jasper",null,con);
            JasperViewer.viewReport(jp, false);***
    

    After this copy or cut the jasperfile eg.(your_reportname.jasper and your_reportname.jrxml) and go to the File directory of your project(easy to find in netbeans) and paste them in the build.xml folder of the project .Making sure you have imported the necesasry class jars and run.. im using the jasperreport 3.7.4 plugin for netbeans in my netbeans ide

提交回复
热议问题