This content has been marked as final.
Show 1 reply
-
1. Re: jrxml-file in a EJB3-archive
colineberhardt Mar 16, 2007 12:33 PM (in response to vaschenko)Hi,
You cannot simply construct a File from a given pathnam ein order to load a file which is packaged within a jar file.
Take a look at this page on accessing resources:
http://java.sun.com/j2se/1.4.2/docs/guide/resources/resources.html
You should try:
URL url = Classloader.getResource( "report.jrxml" );
Regards,
Colin E.