Jasper 8.0 – Configuration Changes Required for Exporting HTML5 Charts to PDF

NOTE: This update only affects clients who upgraded to CMiC patch 17-2 and are using custom Jasper reports or dashboards, which contain HTML 5 charts.

In the Jasper 8.0 release, the JavaScript engine is switched to Chrome/Chromium from PhantomJS/Rhino. The JasperReports Server now uses the Chromium JavaScript engine to export reports and dashboards to PDF and other formats. PhantomJS/Rhino support has been removed.

You will need to install and configure Chrome/Chromium to export the reports and dashboards to PDF and other output formats.

Here’s the process for application servers running on Windows:

  1. Install patch 17-2 and the latest hotfix.

  2. Install the Chrome browser on the application server.

  3. Set the chrome.path variable in the jasper-js.config.properties file to point to the Chrome executable. On Windows servers, this file is usually located in the D:\cm\ias\j2ee\<env_name>\classes\jasper directory.

    Here’s an example value for the property:

    chrome.path=C:/Program Files/Google/Chrome/Application/chrome.exe

Step 3 needs to be repeated for every environment on the same application server.