From Bright Pattern Documentation
< 3.15:Custom-reporting-tutorial
Revision as of 22:29, 6 April 2017 by Tracy (talk | contribs) (Importing Libraries)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 3.10 • 3.11 • 3.12 • 3.13 • 3.14 • 3.15 • 3.16 • 3.17 • 3.18

Importing Libraries

After you have downloaded libraries and localization resources, the next step is to import the libraries.

Note that if you have just installed Jaspersoft Studio on your computer, your workspace may not contain any folders or projects in the Project Explorer tab, and you may have to add a new folder called MyReports before you can proceed with the following steps.


Step 1: Add libraries to MyReports project.

  • In Jaspersoft Studio, navigate to the Project tab in the left-hand part of the screen.
  • Select MyReports.
  • Right-click MyReports and then select New > Folder.


How to create a new folder


  • In the dialog box that pops up, select parent folder MyReports and name the new folder libs. This is the folder that will contain your libraries.
  • Click Finish.


Project > MyReports > New > Folder


Step 2: Import files.

  • Right-click the libs folder and select Import.


libs > Import


  • In the dialog window that pops up, select File System.
  • Click Next.


libs > Import > File System


Step 3: Add files from the report template library for use in Jaspersoft Studio.

  • Click Browse to find the report-template-libs folder of the package that you previously downloaded and extracted.
  • Select the report-template-libs folder and click OK.
  • Select these files:
    • report-formatter.jar (to provide scriplet functions for output formatting)
    • mariadb-java-client-1.1.6.jar (for database connection)
    • icu4j-4.8.1.jar (for Unicode and localization support)
    • report-fonts.jar (for Unicode fonts)
  • Click Finish.


Libs > Import > File System > report-template-libs


Step 4: Build paths to the files within the project folder.

  • Select these .jar files in the Project Explorer. You can select all four as a batch.
  • Right-click the selection and then select Build Path > Add to Build Path. Doing so will add a path for each .jar file to the root folder of the project.


Build Path > Add to Build Path


Step 5: Add remaining report-template-libs files to the project.

Add the files report_logo_bar.png and report_logo.png to the root folder of the project by following step 2 and step 3 of this procedure. Instead of selecting the .jar files, select the .png files from the report-template-libs folder.


< Previous | Next >
< Previous | Next >