remasdiab Posted October 4, 2015 Share Posted October 4, 2015 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(); }[/code] Link to comment Share on other sites More sharing options...
j.9953609122 Posted May 7, 2016 Share Posted May 7, 2016 Hi ... Did you got the solution? Urgent... pls help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now