Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Other Open Source Projects
Accessing Jasper file in Jar file . . .
Joined: Apr 02, 2009
Jun 07, 2011 02:36:43
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.
rocket mass heater
subject: Accessing Jasper file in Jar file . . .
Directory, File, Jar input problem
a file in your Jar, How do I access it in code?
Executing my .java in package
read a source from a jar file
List directory of jars
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014