Installing report samples involves the creation of a Java Project. To create the project follow these steps:
Procedure A.1. Installing report samples
Unzip the downloaded archive.
For convenience we will consider that the installation is performed on a Windows machine and that the archive is extracted on drive C. Ensure the correct extraction by confirming the presence of the following directories:
Open the Java Project wizard.
In Eclipse, open the new project creation wizard by selecting:
File->New->Project.... Select the
Project option and proceed to the next step.
Choose the project name and location
Choose the name
samples for the project. Select the
c:\jasperreports\demo as the
external location of the project and then proceed to the next step.
Configure build settings
The wizard automatically detects and proposes correct source folders as shown below:
Libraries tab and configure the classpath as follows.
Add JARs... button and add the
jfreechart jar files.
Add External JARs... button and add the
following jar files:
Add Variable... button and add the
Add Class Folder... button and add the
Set the default output folder option to
samples\build and proceed to the next step.
Finish Project Creation
Finish to finish the project creation.
Enable Report Compiler
Enable the JasperAssistant report compiler for the created project (see Section 7.2, “Compiling Reports”).