From Bright Pattern Documentation
Jump to: navigation, search
(Created new topic from branched topic Documentation:ServicePattern:custom-reporting-tutorial:ImportingLibraries:3.15)
 
 
Line 4: Line 4:
 
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.
 
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.
  
 +
== Procedure ==
 +
=== Step 1: Add libraries to ''MyReports'' project ===
 +
# In Jaspersoft Studio, navigate to the ''Project'' tab in the left-hand part of the screen.<br /><br />
 +
# Select '''MyReports'''.<br /><br />
 +
# Right-click '''MyReports''' and then select '''New > Folder'''.<br /><br />[[File:Jaspersoft-MyProjects-New-Folder.png|650px|thumbnail|center|How to create a new folder]]<br /><br />
 +
# 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.<br /><br />
 +
# Click '''Finish'''.<br /><br />[[File:Name-New-Folder.png|650px|thumbnail|center|Project > MyReports > New > Folder]]
  
'''Step 1: Add libraries to ''MyReports'' project.'''
+
=== Step 2: Import files ===
* In Jaspersoft Studio, navigate to the ''Project'' tab in the left-hand part of the screen.
+
# Right-click the '''libs''' folder and select '''Import'''.<br /><br />[[File:Libs-Import.png|450px|thumbnail|center|libs > Import]]<br /><br />
* Select '''MyReports'''.
+
# In the dialog window that pops up, select '''File System'''.<br /><br />
* Right-click '''MyReports''' and then select '''New > Folder'''.
+
# Click '''Next'''.<br /><br />[[File:Libs-Import-File-System.png|450px|thumbnail|center|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.<br /><br />
 +
# Select the ''report-template-libs'' folder and click '''OK'''.<br /><br />
 +
# Select these files:<br /><br />
 +
## '''report-formatter.jar''' (to provide scriplet functions for output formatting)<br /><br />
 +
## '''mariadb-java-client-1.1.6.jar''' (for database connection)<br /><br />
 +
## '''icu4j-4.8.1.jar''' (for Unicode and localization support)<br /><br />
 +
## '''report-fonts.jar''' (for Unicode fonts)<br /><br />
 +
# Click '''Finish'''.<br /><br />[[File:Import-File-System-Finish.png|650px|thumbnail|center|Libs > Import > File System > report-template-libs]]
  
[[File:Jaspersoft-MyProjects-New-Folder.png|650px|thumbnail|center|How to create a new folder]]
+
=== 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.<br /><br />
 
+
# Right-click the selection and then select '''Build Path &gt; Add to Build Path'''. Doing so will add a path for each .''jar'' file to the root folder of the project.<br /><br />[[File:Build-Paths.png|650px|thumbnail|center|Build Path > Add to Build Path]]
* 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'''.
 
 
 
 
 
[[File:Name-New-Folder.png|650px|thumbnail|center|Project > MyReports > New > Folder]]
 
 
 
 
 
'''Step 2: Import files.'''
 
* Right-click the '''libs''' folder and select '''Import'''.
 
 
 
 
 
[[File:Libs-Import.png|450px|thumbnail|center|libs > Import]]
 
 
 
 
 
* In the dialog window that pops up, select '''File System'''.
 
* Click '''Next'''.
 
 
 
 
 
[[File:Libs-Import-File-System.png|450px|thumbnail|center|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'''.
 
 
 
 
 
[[File:Import-File-System-Finish.png|650px|thumbnail|center|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 &gt; Add to Build Path'''. Doing so will add a path for each .''jar'' file to the root folder of the project.
 
 
 
 
 
[[File:Build-Paths.png|650px|thumbnail|center|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.
  
'''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.
 
  
  
<center>[[custom-reporting-tutorial/DownloadingLibrariesandLocalizationResources|< Previous]]  |  [[custom-reporting-tutorial/CreatingDataAdapter|Next >]]</center>
 
  
 
</translate>
 
</translate>

Latest revision as of 17:36, 29 August 2018

• 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.

Procedure

Step 1: Add libraries to MyReports project

  1. In Jaspersoft Studio, navigate to the Project tab in the left-hand part of the screen.

  2. Select MyReports.

  3. Right-click MyReports and then select New > Folder.

    How to create a new folder


  4. 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.

  5. Click Finish.

    Project > MyReports > New > Folder

Step 2: Import files

  1. Right-click the libs folder and select Import.

    libs > Import


  2. In the dialog window that pops up, select File System.

  3. Click Next.

    libs > Import > File System

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

  1. Click Browse to find the report-template-libs folder of the package that you previously downloaded and extracted.

  2. Select the report-template-libs folder and click OK.

  3. Select these files:

    1. report-formatter.jar (to provide scriplet functions for output formatting)

    2. mariadb-java-client-1.1.6.jar (for database connection)

    3. icu4j-4.8.1.jar (for Unicode and localization support)

    4. report-fonts.jar (for Unicode fonts)

  4. Click Finish.

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

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

  1. Select these .jar files in the Project Explorer. You can select all four as a batch.

  2. 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 >