amongalen Posted July 3, 2018 Share Posted July 3, 2018 HelloI've got a Java application that uses JasperReports Library to compile and fill reports. In some of my reports I got some scriptlets I'd like to call. Using them in JasperSoft Studio is rather straightforward.When I try to fill a report containing scriptlets from Java app I get following error:net.sf.jasperreports.engine.JRException: Error loading scriptlet class ...Which is to be expected, because I didn't specify anywhere where the class is located. I've tried to add the scriptlet jar as a library to that Java project and it kinda works.The problem is I'd like to be able to add scriptlet jars at runtime, e.g: load all that are in the xyz folder. In my project I'll have hundreds of reports, many of them will have to use scriptlets. Adding them as a library everytime someone creates a reports isn't an option.Is there some way to load scriptlet class/jar from Java at runtime? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now