Embedded jasperreports java desktop aplication



I have a java desktop application where I embedded a JasperReport, but upon deployment, when then end user runs the installed application, the JasperViewer does not show if the JDK is not installed and the path is not set in the System Enviroment Variables. Is there anyway to avoid this? 




afusaru's picture
Joined: Apr 11 2019 - 6:21am
Last seen: 6 months 12 hours ago

Thank you C-Box, you were right, the compiler library was missing, but when I added the library it took a lot to compile, after 9 minutes of waiting did not get the viewer shown, most likely i am doing something wrong but then I realized i do not need to compile the jrxml as the template is not modified by the end-user so instead i compiled the jrxml using the jasper studio and that is the file that will be populated, and now is even faster.

Thank you for the hint, that sholved my problem



afusaru - 6 months 2 days ago

1 Answer:


IMHO you won't need a full JDK installed at a client just to use the jasperreports built-in viewer. A JRE should be enough, as our customers also just use a runtime.

So probably a library is missing, so there should be thrown an exception - please post the stacktrace to identify the problem



C-Box's picture
Joined: Jul 19 2006 - 5:58pm
Last seen: 1 week 3 days ago