Urgent-Why is jasper report not printing from executable jar ?

0

Hello 

I am able to print correctly jasper report from eclipse but when i exported the jar , i can not print . 

After research , i tried adding path of jasper library to enviroment variables , but also it did not work . Any idea why ?

Log from command prompt :

Exception in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0"
Exception: net.sf.jasperreports.engine.JRRuntimeException thrown from the UncaughtExceptionHandler in thread "AWT-EventQueue-0"

code used(working perfectly inside eclipse)  :

try {              java.io.InputStream is = getClass().getResourceAsStream("/report/report.jrxml");                           JasperDesign jDesign = JRXmlLoader.load(is);                           JasperReport jr = JasperCompileManager.compileReport(jDesign);                             JasperPrint jp = JasperFillManager.fillReport(jr,parameters,new JRTableModelDataSource(jTable1.getModel()) );                JasperPrintManager.printReport(jp, true);                             } catch (JRException e2) {                e2.printStackTrace();             }
remasdiab's picture
Joined: Oct 2 2015 - 7:13am
Last seen: 4 years 1 month ago

Hi ... Did you got the solution? Urgent... pls help

j.9953609122 - 3 years 6 months ago

0 Answers:

No answers yet
Feedback