Jump to content
  • External JAR is not always respected

    CategoryBug report
    ResolutionWorks as Designed

    I am currently trying to build a simple JR sample including a scriptlet. Adding the scriptlet's JAR to my workspace works and allows me to use the class contained in the JAR as a value for a scriptlet that I added to the report. However, when I try to run the report, I get "net.sf.jasperreports.engine.JRException: Error loading scriptlet class: " This is accompanied by "Caused by: java.lang.ClassNotFoundException: cannot be found by net.sf.jasperreports_7.2.1.final"


    For whatever reason, sometimes it works without making any changes to the workspace/classpath. I'll attach the JAR that I have been using for tests.

    User Feedback

    Recommended Comments

    Changed Severity from Major to Minor

    Changed Reproducibility from Sometimes to Always

    After some more playing with it, it appears that the real issue is the modified classpath that is not used until JSS is restarted. This works both ways, so removing a JAR from classpath does not affect compilation until restart of JSS.
    Link to comment
    Share on other sites

  • Create New...