If those jars containing your report templates are in the classpath,
then you could load them using the JRLoader.loadObjectFromLocation().
The report files are serialized dori.jasper.engine.JasperReport objects.
You supply their path within the classpath and it should work.
I hope this helps.
>From: "Malte Kempff" <kempffm@...>
>Subject: [jasperreports-questions] How to get a report-file from a jar
>Date: Thu, 27 Nov 2003 10:56:53 +0100
>I am using Java-Web-Start and also JasperReport. Since Java-Web-Start
>transports only jar-files, I would like to put my Reportfiles into the
>jar-library the application is using.
>Unfortunately my trials to get the report-file to the JasperReport-engine
>failed so that I was forced to leave them on the web-server and get them by
>URL and input-stream. But therefore loading a file from a server takes a
>time I would like to avoid, I am looking fo an example of how to get a
>report-file from a jar to JasperReport.
>Can anybody give me such an example or an advice?
>Thanks a lot in advance
>This SF.net email is sponsored by: SF.net Giveback Program.
>Does SourceForge.net help you be more productive? Does it
>help you create better code? SHARE THE LOVE, and help us help
>YOU! Click Here: http://sourceforge.net/donate/
>jasperreports-questions mailing list
The new MSN 8: smart spam protection and 2 months FREE*