Jasper Reports – Environment setup in Eclipse

Last modified date

Jasper Reports is also known as Jaspersoft Studio, I have been using Jaspersoft Studio since last 3 years and it has all features to generate and design all Kind of reports like Portrait, Landscape, Thermal printing and many other commercial designs for free.

Jaspersoft Studio is an open source free report generating tool used purely for Java application both J2SE and J2EE which means for desktop application and Web applications. Before going in detail about Jaspersoft Studio, we need to understand what the minimum requirements to setup a Jasper Report.

The topics we will be discussing are:

  1. Installing Jaspersoft Studio in to our Eclipse IDE
  2. JDBC connection with Database and Jasper Report

Installing Jaspersoft Studio in to our Eclipse IDE

It’s very simple to install Jaspersoft Studio into you Eclipse IDE, open Eclipse IDE click on Help-Eclipse Marketplace. A dialog opens with all your Eclipse addons installed in it. Search for Jaspersoft Studio and install the latest version of Jaspersoft Studio. This process can take several minutes depending on your internet connection. Once the installation is completed go to your Java Project right-click on src-New-others at Wizards search for Jasper report if you find jasper report then the installation was successful in our eclipse IDE.



JDBC connection with Database and Jasper Report

Make sure that you a database setup in your machine. It is most recommended to have an active database in our computer to design a Jasper Report, in our Java Project right-click on src-New-others at Wizards search for Jasper report click next. In the next dialog you will be asked to choose a ready made jasper design, click on blank report and click on next. During the setup of you new jasper report you will be asked to create a connection for Jasper and you database. During the setup process click on new JDBC connection, enter all required fields to finish fields like JDBC driver, URL, username and password and finish. Once this process is completed a file like <filename>.jrxml is created in your Java Project

intactabode