marciofermino Posted June 23, 2016 Share Posted June 23, 2016 Good Morning, Friends speak of Brazil, I am using the following code . Within the NetBeans IDE code works and the report is submitted . But to generate the executable , it is not possible to open the report , getting the message null. It is as if he could not find the report. If puderm help , I am very grateful.Good Morning, Friends speak of Brazil, I am using the following code . Within the NetBeans IDE code works and the report is submitted . But to generate the executable , it is not possible to open the report , getting the message null. It is as if he could not find the report. If puderm help , I am very grateful. Link to comment Share on other sites More sharing options...
hozawa Posted June 24, 2016 Share Posted June 24, 2016 Not sure because you haven't given us any error message when you execute from execuatable. Most of the time, it's because the program is not finding the jrxml file.I usually put jrxml files (I actually use jasper files instead) in "resources" folder and use the following code.InputStream is = this.getClass().getClassLoader().getResourceAsStream(reportName);JasperReport jasperReport = JasperCompileManager.compileReport(is); 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