ml.francis Posted June 17, 2020 Share Posted June 17, 2020 Hi, I think this question was asked before but it didn't have an answer, I'm fairly new to Jasper Reports so I'm having trouble displaying it in my Java program after creating a .jar file for my Java program. I use IntelliJ and made a .jar file for my Java app and it uses reports which is located in the /src folder of the project, the app looks for the .jrxml file in that folder and displays it in my swing app. It works fine when I'm running the app on the IDE but when I created a .jar file and moved the .jar file to another folder and run the program, the part where the reports are loaded is not showing anything. Should I be configuring something in IntelliJ to add the .jrxml file in the .jar file? Am I missing something while building this app? I also moved the .jrxml files to the .jar folder and still nothing. Thanks for the answers, if any, in advance. Link to comment Share on other sites More sharing options...
alfpunk Posted June 30, 2020 Share Posted June 30, 2020 I store my jrxml in the folder resources -> jasperreports -> templates -> someNameReportJasperTemplate.jrxml. Use next path:/jasperreports/templates/someNameReportJasperTemplate.jrxml 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