Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Other Open Source Projects
Accessing Jasper file in Jar file . . .
posted 4 years ago
JasperPrint billPrint=JasperFillManager.fillReport(this.getClass().getResource("/reports/billsReport.jasper").getPath(), params, new JRTableModelDataSource((BillTableModel)billsTable.getModel()));
This works fine while building application in netbeans, but when running the application's Jar file it shows file not found exception. How to solve this problem ? Thank you.
I agree. Here's the link:
List directory of jars
a file in your Jar, How do I access it in code?
Directory, File, Jar input problem
Executing my .java in package
read a source from a jar file