My project has the following architecture :
My template is \"report1.jrxml\",
Jasper reports can't see it because the file is an embedded resource (it doesn't exist as a file, but a entry in the Jar file)
You need to get a reference to it by using getClass().getResource("/testjasper/report1.jrxml")
which will return a URL
.
From memory, you should be able to Jasper a InputStream
, this can be achieved by using URL#openConnection