Prerequisites: It is necessary to have the correct Java executables referenced in the PATH environment variable.
Navigate to the bin folder inside the Tomcat folder.
Type "service install JasperReports", JasperReports being the name of the service, and execute it to create the service.
Edit the newly created service by executing "tomcat9w.exe //ES//JasperReports" from the above directory.
We see a service dialog open up. Navigate to the Java tab to edit the JVM configuration.
Add the below JVM parameters under section Java Options: -XX:MetaspaceSize=256m -Duser.home=C:\Users\Administrator
Duser.home is the home folder of the user that was used to install Jaspersoft
NOTE: The JVM parameters below in REDare no longer supported in Jaspersoft 9 with Java 17.0.x - if you are on an earlier Jaspersoft and Java version you may add them as well: