BIRT Overview
Report Introduction
BIRT is an Eclipse-based open source reporting system for web applications, especially those based on Java and J2EE. BIRT has two
main components: a report designer based on Eclipse, and a runtime component that you can add to your app server. BIRT also offers
a charting engine that lets you add charts to your own application.
The current released version is 2.1.2. We encourage you to download BIRT, try it, and give us your feedback though the newsgroups
and Bugzilla.
With BIRT, you can add a rich variety of reports to your application.
Lists - The simplest reports are lists of data. As the lists get longer, you can add grouping to organize related data together
(orders grouped by customer, products grouped by supplier). If your data is numeric, you can easily add totals, averages and
other summaries.
Charts - Numeric data is much easier to understand when presented as a chart. BIRT provides pie charts, line & bar charts
and many more. BIRT charts can be rendered in SVG and support events to allow user interaction.
Crosstabs - Crosstabs (also called a cross-tabulation or matrix) shows data in two dimensions: sales per quarter or hits per
web page. (Crosstabs are not yet in Release 2.1.2, but are planned for the 2.2 release.)
Letters & Documents - Notices, form letters, and other textual documents are easy to create with BIRT. Documents can
include text, formatting, lists, charts and more.
Compound Reports - Many reports need to combine the above into a single document. For example, a customer statement
may list the information for the customer, provide text about current promotions, and provide side-by-side lists of payments and
charges. A financial report may include disclaimers, charts, tables all with extensive formatting that matches corporate color
schemes.
BIRT reports consist of four main parts: data, data transforms, business logic and presentation.
Data - Databases, web services, Java objects all can supply data to your BIRT report. Release 2.1.2 provides JDBC and XML
support, as well as support for using code to get at other sources of data. BIRT's use of the Open Data Access (ODA)
framework allows anyone to build new UI and runtime support for any kind of tabular data. Further, a single report can include
data from any number of data sources. BIRT also supplies a feature that allows disparate data sources to be combined using
inner and outer joins.
Data Transforms - Reports present data sorted, summarized, filtered and grouped to fit the user's needs. While databases can
do some of this work, BIRT must do it for "simple" data sources such as flat files or Java objects. BIRT allows sophisticated
operations such as grouping on sums, percentages of overall totals and more.
Business Logic - Real-world data is seldom structured exactly as you'd like for a report. Many reports require business-specific
logic to convert raw data into information useful for the user. If the logic is just for the report, you can script it using BIRT's
JavaScript support. If your application already contains the logic, you can call into your existing Java code.
Presentation - Once the data is ready, you have a wide range of options for presenting it to the user. Tables, charts, text and
more. A single data set can appear in multiple ways, and a single report can present data from multiple data sets.
Step-by-Step BIRT Tutorial We'll create a simple customer listing report, with the
customers grouped by state and city. For each customer, we'll
Step1 display a name and phone number.
Introduction
Install BIRT
Introduction
If you have not yet done so, install Eclipse, GEF, EMF and
This brief tutorial walks you through building a simple report with BIRT. You'll find complete instructions for doing so on the BIRT
BIRT. It introduces the major UI features, and many of the BIRT Install page.
reporting elements. At the completion of this tutorial, you should be
able to start building your own reports using your own database.
Date: 12/21/2017 Page: 2 - 17
Open BIRT Click Next.
BIRT is a perspective within Eclipse. To open it, use the Window You can create a report in three ways: as a blank report, by
item on the Eclipse main menu. Choose Open Perspective, then using a BIRT-defined template, or by copying one of your
Report Design. If report Design does not appear directly in the report designs. In this tutorial we will use a Template descibed
Open Perspective window, then choose Other... A list of in the next section.
perspectives will appear. Choose Report Design.
Choose a Template
Eclipse will switch to display the BIRT perspective.
The next page of the New Report dialog presents a selection of
Example Report report templates. Before we choose the one we want, let's walk
though what's available.
If you get stuck as you work through the tutorial, or if you want to
see the finished report right away, simply download it: My First Report - Starts a report template that takes
you through a tutorial using on-line help. (That tutorial
Use your browser to download the report: will eventually replace this one.)
customers.rptdesign. Blank Report - Creates a blank report with no
Save the file into an Eclipse project directory. (See the predefined content.
next page if you don't yet have a project.) Simple Listing - A tabular listing with no grouping.
Your browser may store this as an XML file. If so, rename Grouped Listing - A tabular listing with grouping.
it back the the name above. Grouping shows repeated values just once. Grouping
Within Eclipse, select your project in the Navigator view also allows you to create subtotals.
and choose Refresh from the right-click context menu. Dual Column Listing - Produces a listing with two
Double-click the report to open it in the BIRT report columns side-by-side.
designer. Chart & Listing - A tabular listing that adds a chart to
the top of the report.
Step2 Dual Column Chart & Listing - Combines charts and
tables so you can display two sets of related data in a
single report.
Create a Project
Side by Side Chart & Listing - Creates a grouped
Create a Report report where each group contains a chart and a listing
Choose a Template side by side.
Eclipse uses projects to organize your files. So, the first step is to Select the Grouped Listing.
create a new project. For this demo, let's create a project called
Click Finish.
"My Reports":
Create a Report Before we start work on the report, let's take a quick tour of the
UI. We'll be looking at most of the UI in detail as we build our
We're now ready to create our first report: report.
Layout Editor
About Data Sources and Data Sets
The central area is the Layout Editor. This is the place where you
BIRT reports use a data source element to connect to a
create your report design. The editor has five tabs:
database or other data provider. BIRT uses a data set element
to retrieve data from the data provider. Think of the data source
Layout - Where you edit your report design. as a connection, and the data set as a query.
Preview - Runs your report and shows the output.
Script - Where you add JavaScript to your report to Build a Data Source
customize its behavior.
XML Source - You can view and modify the XML source of Let's build our data source:
a report from here.
Master Page - Used to format page data such as page
Open the Data Explorer View, if it is not already
headers.
visible.
Select the Data Sources node within the tree view.
Views
Right-click to open the context menu.
Choose New Data Source. The New Data Source
Around the editor are a number of views: The views below can be dialog appears.
arranged to the left, right or bottom of the Layout Editor
Choose Classic Models Inc. Sample Database.
In the Data Source Name field, enter "Sample".
Palette - BIRT View that shows the standard report items Click Next.
you can add to your report using drag & drop.
Click Finish.
Outline - BIRT View that shows the structure of your report
as a tree view.
Navigator - Standard Eclipse view that shows your Your new data source appears within the Data Sources node in
the Data Explorer.
projects, and the reports within your projects.
Data Explorer - BIRT View that shows your data sources
(connections), data sets (queries) and report parameters. Editing your Data Source
You also use this view to add data set columns to your
report layout. For future reference, let's review how you would go about
Property Editor - BIRT View that displays properties for changing the data source:
many report items. It has tabs and groupings that organize
properties into categories. Find or open the Data Explorer View.
Properties View - Standard Eclipse view that shows all Open the Data Sources node.
properties for a report item as a simple list. This view is
optional, and we will not use it in this tutorial. Double-click the data source.
Library Explorer View - BIRT allows the reuse of report The Data Source editor opens. You can make any
objects, such as tables, data sources and styles. Objects needed changes.
created for reuse are stored in a library file. The Library Click OK to save your changes.
Explorer will display Libraries that exist in the resource
folder. Developed libraries can be added to the resource Step5
folder by selecting File→Publish Library to Resource
Folder or by right clicking in Library Explorer and selecting
add. The resource folder location can be configured at: Build a Data Set
Window→Preferences→Report Design→Resource. Data Set Editor Pages
Database Browser
Displaying Views Create the Query
Test the Query
You can arrange your views any way you like. You can also hide Edit a Data Set
them by clicking the "X" button next to the view tab. If you
accidentally hide a view, you can display it again by using the Build a Data Set
Window→Show View menu item.
Now we're ready to build and test our data set.
Many people find that a convenient layout is to have the Palette,
Navigator, Outline and Data Explorer docked at the left edge of
your workspace, and the Property Editor and Properties view Find or open the Data Explorer view.
docked at the bottom of the workspace. Select the Data Sets node in the tree view.
Right-click to open the context menu. (We'll just say
Step4 "open the context menu" or "choose x from the
context menu" from now on.)
Date: 12/21/2017 Page: 4 - 17
Select New Data Set. The New Data Set dialog will This editor support drag and drop.
appear.
Enter "Customers" for the Data Set Name field.
Ensure that the Data Source field shows the Sample data
source created above. Test the Query
Ensure that the Data Set Type field shows "SQL Select
Query".
With the data set editor open, do the following:
Click Next.
Enter the following Query:
SELECT * Click on the Preview Results item.
FROM CUSTOMERS
WHERE COUNTRY = 'USA' The preview page appears. This page shows the columns
Click Finish. selected in your query listed across the top. The actual rows in
your query appear down the page.
Data Set Editor Pages
Verify that the list of customers appears.
The data set editor now opens. Let's take a look at the pages within Click OK to close the data set editor.
this editor. The data set editor provides the following pages:
If an error dialog appears, check the following:
Query - Displays your SQL SELECT statement. This is
where you create and change your SQL query. Once you Your Eclipse is installed in a directory without spaces.
have the basic query, you can add a WHERE clause, You have typed the SQL statement as shown above.
adjust the set of selected columns, and more. Use the
SQL editor to add computed columns that are to be
You have not put a semi-colon at the end of your
calculated by the database engine. Give such columns a statement.
name using the SQL ALIAS clause.
Data Source - Displays the name of the data source for Edit a Data Set
this data set so you can view or change it.
Preview Results - Lets you test your query and see the Your new data set appears in the Data Explorer along with your
output. Very handy to make sure that the data is right data source. We can use the data set editor to change the data
before you proceed with report design. set, and to test it to make sure it returns the correct data.
Computed Columns - Computed columns are calculated
by BIRT and appear to the rest of the report just like any Find or open the Data Explorer.
other column. You can use JavaScript expressions, and Open the Data Sets node.
even call into Java for advanced business logic.
Double-click the Customers data set. The Data Set
Parameters - SQL SELECT statements can include input
editor opens.
parameters that pass data into the query. They are marked
using the SQL "?" symbol in the query. This page lets you
give the parameters a name, a default value, and so on. Step6
There must be a one-to-one correspondence between
entries on this page and the "?" symbols in your query. Report Layout
Filters - Additional filters that BIRT applies to your data. Report Items
Filters restrict the data passed to the report. The WHERE
Create the Table Detail
clause is also a filter: one executed by the database. This
tab lets you define additional filters using BIRT Create the State Group
(JavaScript) scripting. Create the City Group
Output Columns - Shows the columns within the query, Add a Table Column
and lets you define a column alias for use in the report. Create Column Headings
Note that this view shows the columns as the report will
see them. The Query page shows the columns as Report Layout
selected from the database.
Preview as PDF
Test your Report
Preview as HTML
You can also choose Preview as PDF. This converts the layout
Preview as PDF
to a multi-page PDF format.
We're now ready to test the report layout. We verified the data set
earlier, so now we want to verify that the report is presenting the Resizing Table Columns
data as we expect. Setting the Background Color
Setting the Font
We preview the report by clicking on the Preview tab in the lower Formatting Data
left corner of the report editor. This report has no parameters, but if Setting a Border
it did, they could be modified by selecting the Show Report More on Properties
Parameters button.
Resizing Table Columns
The window that appears is an embedded web browser, which
displays the report in HTML format. The report appears as a single
page. This works best for smaller data sets. Since the sample Let's adjust the size of the table columns. Tables & columns
database has quite a bit of data, we used a WHERE clause to limit can be sized using absolute sizes (inches, centimeters), or
the results. We could also use a report parameter or a data set filter relative sizes (percentage of the width of the page.) Here, we'll
to limit the amount of data displayed at any one time. adjust the column widths by directly changing them in the
report layout. To do this:
There are a number of ways we can improve the report's
appearance: Click the Layout tab to switch back to the report
layout.
Display, then click on the table tab to display the
Add a title to the top of the report.
"scaffolding."
Add some color to enhance the column headings.
Find the black line that separates the "City" and
Shrink the size of the city and state columns. "State" column headings.
Add some color to make the state and city group headers With the cursor over this line, hold down the left
stand out. mouse button and resize the column to be about big
Format the phone numbers. enough to hold the two-letter state code and label.
Sort customers by name. Repeat the above to resize the city column.
Before we apply these aesthetic enhancements, let's look at other Setting the Background Color
ways to preview the report.
Let's dress up the state heading by setting the row's
Preview as HTML background color. To do this:
Date: 12/21/2017 Page: 7 - 17
Select the state group header row (first group header) by Set the Color field to a black. (Use the color name
clicking on the shaded box to the left of the row. pull-down, or choose the bottom left color in the color
(Remember to display, then click on the table tab to picker.) (This is the default.)
display the scaffolding.) Set the Width property to the thinnest line.
Locate or open the Property Editor. Click the top, bottom, left and right border buttons. A
A list of property types appears at the left of the view. Click thin border appears around the table.
on the General group. Switch to the Properties view (Window->Show View-
Find the Background color field. Click on the empty gray >Properties) to specify that a wider border should be
button to display the color picker. used for the bottom and right sides.
Pick the blue color third from the right in the top row. This Click on the table tab to initialize the Properties view
is a standard color, but is a bit too dark for our needs. with the table’s properties.
Click on the "Define Custom Colors" button. Expand the Box node in the Properties View and set
Take the right-most slider (saturation) and move it up to the Border bottom width and Border left width fields to
produce a very light blue. medium.
Click OK.
More on Properties
Setting the Font
BIRT provides a wide variety of properties for formatting report
Now, let's give the state a bold font. We'll also dress up the city items. The properties are based on the W3C CSS (Cascading
group heading by giving it a dark blue, bold, larger font. To do this: Style Sheet) standard. If you've ever used CSS to format
HTML, you are well on your way to understanding formatting in
BIRT.
Select the state Data Element. (it’s located below the state
label.)
Step9
Switch to the General property group in the Property
Editor.
Find the Font size field. Change the size to "Large". About Data Properties
Click the [B] (bold) button to make the font bold. Setting the Detail Sort
Select the city Data Element.
Again, switch to the General property group. About Data Properties
Set the font size to Large.
Click on the Font Color button. In addition to the visual properties we just saw, BIRT provides
a set of data-related properties for each report item. We'll use
The color chooser again opens. Again choose the blue these to control the sort order of the customers within our
that is third from the right in the top row. report.
Click OK.
Data sets in BIRT are reusable: you can use the same data set
Formatting Data multiple times. For example, suppose you want to show year-
to-date (YTD) sales three ways: by month, by sales rep, and as
We want to format the phone numbers so that they have correct a chart. With BIRT, you define the data set once, but present it
North American format: (123) 555-1212. We do this by applying a three times. Each use of the data set can provide data
string format to the phone number field. Formats are also available properties that customize the data set to that particular use.
for dates and numbers.
Data properties include:
Select the phone number Data Element.
Switch to the Format String page in the Property Editor. Data set binding: lets you specify the data set to use
Choose Custom for Format String as. with any given report item.
Choose Phone Number from the list. Parameter binding: you can pass data into the data
In the Format Code field, add a space after the closing set. For example, you can create a "master/detail"
parenthesis to produce the following: subreport by using data set parameters to pass data
from the current row in the master report to the detail
for the subreport. Or as another example, you can
(@@@) @@@-@@@@ obtain a list of customers from one database, then
have the subreport display orders from a different
Setting a Border database.
Filters: provide filter conditions unique to a given
Next, let's put a "drop shadow" border around our table. presentation. For example, a list of transactions might
list all transactions, but then use filters to display
sales in one chart, returns in another.
Click on the table tab.
Groups: provide ability to create subtotals as we have
Select the Borders page in the Property Editor. already seen.
Set the Style field to a solid line. (This is the default.) Sorting: controls the order of the detail rows within a
table. This is the property we'll use.
Date: 12/21/2017 Page: 8 - 17
Setting the Detail Sort Applying a Style
We're ready to specify the sort order for customers within our Next, let's apply the style to the other three header labels. (We
report. could have done this in a single step by selecting all four when
we defined the style. We're doing it in two steps just to show
how it's done.)
Select the table. (by clicking on the table tab in the Layout
Editor.)
Choose the Sorting tab within the Property Editor. (Note: Select the other three labels: click on the City label,
Sorting is a tab on the top of the Property Editor and not a then use Ctrl+click to add the other two to the
page on the left as we've used thus far.) selection.
Click the Add button to add a new sort condition. Choose Style→Apply Style→Header from the context
Use the pull-down under Sort Key to choose menu.
"CUSTOMERNAME".
Leave the Sort Direction at Ascending. The other three cells are now also formatted.
Create a Grid Let's click the preview tab to see how our report looks after the
formatting. Not bad, but we still need the report heading. To do
Let's add a suitable heading to our report. It will use the classic this:
"left/center/right" layout: a logo on the left, the report title in the
center, and the run date on the right. Before you do this you may Drag an Image item from the palette into the left-most
want to remove the current basic heading, which simply says cell of your grid.
“Report Header”. To do this: The Image Builder dialog appears.
Ensure that the URL radio button is selected.
Select the Grid item containing the “Report Header”which Enter the following URL:
is located above your table. "http://www.eclipse.org/birt/phoenix/tutorial/basic/multi
Delete it by right-clicking on it and selecting the delete chip-4.jpg". (don’t forget to add the quotes.)
option from the context menu. Click the Preview button to ensure that the URL is
correct.
The easiest way to create such a layout is to use a grid. A grid is Click Insert to add the image to your report.
like an HTML table, it tells BIRT the desired layout, and BIRT does
Date: 12/21/2017 Page: 10 - 17
You can also embed an image from your local disk. Embedding the From the list near the top of the dialog, insert a
image copies the image into the report design. Using a URL is more <FONT> element.
efficient. In the attributes provided, set the size to 6 and the
color to blue. Erase the face attribute. The text should
Insert a Run Date now look like this:
Next, let's display the current date in the right-most cell in the <CENTER>
heading. To do this: <FONT size="6" color=blue>
</FONT>
Drag a Data item from the Palette into the right-most cell
</CENTER>
of your grid.
Continue using the editor to create the text below:
The New Data Item dialog will be displayed. Change the
name to current_date.
Set the Data Type column to Date Time. Select the ellipse <CENTER>
next to the Expression. The expression builder will appear. <FONT size="6" color=blue>
Customer Listing
Type "new Date( )" (without the quotes) to display the
</FONT>
current date.
<BR>
Click OK. <I>For internal use only</I>
Set the date format. Select the Format DateTime page </CENTER>
within the Property Editor. Click OK and save your changes.
Choose the date format that looks like this: May 12, 2005.
(The actual date will be today's date.) This is the BIRT
Dynamic Text
"Medium Date" date format.
The final step in our report is to create the actual header text. We Final Test
want it to look something like this:
We're now ready to give the report a final test. Click the
Customer Listing Preview tab to see the report with formatting applied.
For internal use only
Step14
We could create this with two labels. But, we'll take this opportunity
to try out the Text element which allows us to use HTML formatting
within the text. Wrap Up
Next Steps
Create a Text Item More Information
Drag a Text Element from the palette and drop it into the In this tutorial we created a simple listing that touched on many
center cell within our grid. of the features of the BIRT Report Designer and Report Object
The Edit Text Item dialog appears. Model (ROM). Now that you are familiar with BIRT, you're
ready to learn more about it.
In the top combo box, choose HTML/Dynamic Text. The
dialog displays a variety of HTML tags we can insert.
Next Steps
Using the button next to Formatting, pull down the list and
choose Layout.
Click the <CENTER> tag to add it. Additional BIRT topics include:
Date: 12/21/2017 Page: 11 - 17
Charting with interactivity Payments: Payments made by customers against
Scripting and Expressions using JavaScript their account
Custom data access extensions Products: The list of scale model cars
Advanced formatting Product Lines: The list of product line classifcation
Advanced queries
Multi-part reports (multiple lists, side-by-side lists, master- This ER-diagram shows the table structure and relationships.
detail reports, etc.) (PDF version)
Conditional formatting
Extended data items Install
Dynamic and cascaded parameters
Joined Data Sets The sample database is available in two forms:
The extensive online help included within BIRT. Select The scripts to load a MySQL database are contained in the
Help→Help Contents from the Eclipse menu and then sample database zip file. This zip also has documentation and
click on the BIRT Developer Guide. logos for the sample database.
Reference material, including ROM (Report Object Model)
specifications. MySQL Version
Additional example reports.
BIRT newsgroup To install the MySQL version of the sample database, you must
How to get help on using BIRT. have MySQL installed. See mysql.com for instructions.
% cd /ClassicModels/mysql
The sample database is open source; you are free to use it for your
own use to experiment with other tools; to create samples for other
tools, etc. The sample database is provided under the terms Start the mysql utility, giving the name (and password,
Eclipse.org Software User Agreement. if needed) of a user permission to create databases.
For example, to use the default root user:
Schema
% mysql --user=root
The database consists of eight tables:
Create the ClassicModels database and load the
Offices: sales offices schema. (Loading the schema the schema the first
time will give error messages as it attemps to empty
Employees: All employees, including sales reps who work any existing tables, just ignore these.)
with customers.
Customers
mysql> create database ClassicModels; mysql> use
Orders: Orders placed by customers ClassicModels; mysql> source
Order Details: Line items within an order. create_classicmodels.sql;
Date: 12/21/2017 Page: 12 - 17
Load the table contents: and line graphs, JavaScript for dynamic images, style usage,
highlighting, grouping and detail drill down..
mysql> source load_classicmodels.sql;
Examples
Exit from mysql:
Solution Reports – This section contains several
example solution reports, such as Business Forms.
mysql> quit;
Reporting Feature Examples – This section
demonstrates features and functions of the BIRT
Localized Version of the Sample Database Report Designer.
Scripting – This section contains examples of
Following is the Derby Database localized into French, German, scripting within the BIRT Designer
Spanish, Japanese, Korean, and Simplified Chinese. Integrating BIRT – This section demonstrates several
examples of deploying and using the APIs of BIRT
Localized Derby Sample Database Extending BIRT – This section covers extending the
feature set of BIRT, such as Open Data Access
Usage (ODA), Report Items, etc
You can now use the sample database within BIRT to create BIRT Solution Reports
reports. The key information you need to get started is how to
create a data source for the database. The details vary depending Introduction
on the database system you selected. Listing
Business Forms
Apache Derby
Introduction
The Apache Derby version of the database is included in the BIRT
download as a built-in data source. To access it, simply select the
The example reports here show just a few of the things you
"Classic Models Inc. Sample Database" entry in the new data
can do with BIRT. Unless otherwise noted, the reports are
source dialog.
meant to be run against the "Classic Models Inc." sample
database that is included in the BIRT download.
MySQL
Preview a report by clicking on the title link. To try a report for
Data source properties for the MySQL sample database: yourself, click on the rptdesign link to display the ROM file,
save it to disk and then use File-->Import to bring the file into
Driver Class: com.mysql.jdbc.Driver your Eclipse workspace. If the report uses the Classic Models
URL: jdbc:mysql://localhost/classicmodels database, you should be able to run the report immediately. If
the report uses another database, follow the instructions
User Name: root
provided in the "Other Notes" section of its description.
Password:
Listing
Business Forms
BIRT Integration
Extending BIRT Use the Report Engine API to run BIRT reports directly from
Java code or to create a custom web application front end for
Your application can extend BIRT for your specific needs: BIRT.
Scripting (Reference) (Scripting Primer) Using the Engine API explains how to use the Engine
BIRT provides extensive scripting support. You can create API to create a simple command-line program that
anything from computed columns to sophisticated runs reports.
business logic to extensive integration with existing Java
code. Design Engine API
Open Data Access (ODA) Extension API
BIRT provides a JDBC data source. Use the ODA API to Use the Design Engine API (DE API) to create a custom report
create custom data sources drivers. Each driver has run- designer tool, or to explore or modify BIRT report designs. The
time behavior along with optional design-time UI. BIRT Designer is built using this API. (Internally, the Design
Scripted Data Source (Scripting Primer) Engine is also called the "report model" or just "model.")
The scripted data source and data set elements allow you
to access custom data sources directly from your report
without the need to create an ODA driver. This solution is Using the Design Engine API: a brief primer for using
ideal for one-off data sources, prototypes, and the like. the DE API.
Report Item Extension API The Design Engine code is available in the BIRT CVS
The BIRT model is extensible; you can add new report repository in the org.eclipse.birt.report.model project.
items. Use this API to include design-time, run-time or See the BIRT build instructions for information on how
presentation-time behavior. to access CVS and build the code.
Report Viewer
The BIRT Viewer can be used in a variety of ways: Pre-Requisites and Installation Instructions for BIRT
Java GEF
You'll need a Java runntime environment (JRE) The version you GEF, the Graphic Editor Framework, is an Eclipse plugin used
choose will depend on the version of Eclipse you are running. See by the BIRT UI. Download the GEF 3.1/3.2/3.3 Release, GEF
below. Runtime.
Eclipse GEF comes as a zip file. Unzip GEF into directory that contains
Eclipse. If you installed Eclipse into the standard location on
BIRT is currently tested with the following configurations: Windows, then unzip GEF into "C:\Program Files".
EMF also comes as a zip file. Unzip EMF into directory that
And
contains Eclipse. This is the same directory you used for GEF.
BIRT 2.1/2.1.1
Eclipse 3.2.
DTP
GEF 3.2.
EMF 2.2.
BIRT sources data for reports using the Data Tools Platform
JRE 1.4.2/JRE 1.5. Project. Download DTP version 1.5. Note that 1.5 is only a
requirement for versions of BIRT newer than BIRT 2.2 M6. 2.2
And M6 is the last version of BIRT to include the required DTP
BIRT 2.2M4 and higher plugins in the designer download.
Eclipse 3.3.
GEF 3.3. The BIRT allinone download will continue to include the
required DTP plugins. Additionally a separate download is now
EMF 2.3.
available on the BIRT site that is a subset of the DTP plugins.
JRE 1.5. This package referred to as the BIRT/DTP Integration package
DTP 1.5. contains only the required DTP Plugins needed for BIRT to
function.
Report Designer Full Eclipse Install
BIRT
BIRT now supplies a download that incudes Eclipse, GEF, EMF and
BIRT. Use this download if you do not already have Eclipse Download Release 2.1.1 (or later). Download only the BIRT
installed. You will still need iText.jar and prototype.js (this file is no designer framework for now: "birt-report-framework-2_1_1.zip".
longer needed with 2.1 or later builds), which are described below.
BIRT is also a zip file. Unzip BIRT into the directory that
Designer Install contains Eclipse.
Use these instructions if you have Eclipse installed or do not desire Optional Eclipse Link File
to use the Report Designer Full Eclipse Install.
Download and install the Eclipse Platform 3.1/3.2/3.3 Release
If you currently have an Eclipse install with GEF and EMF, you
can download the BIRT framework and unzip the contents to
(Note: Eclipse, EMF, GEF, DTP and BIRT are all available from the any directory.
Eclipse download page.)
After doing this, create a links directory in your
Eclipse comes as a zip file or tar file. On Windows, unzip the install installed Eclipse location (ie
file into your "C:\Program Files" directory. This will create a C:\eclipse3.2\eclipse\links).
subdirectory called eclipse.
Within this directory create a file with a unique name
like birt.2.1.link.
To make it easier to start Eclipse on Windows, create a shortcut to Open the file you just created and enter
Eclipse on your desktop: path=drive:/pathtobirt (ie path=c:/birt2.1)
Date: 12/21/2017 Page: 16 - 17
You will still need iText and prototype.js files. See next Locate your Eclipse plugins directory. If you installed
section. on Windows in the default location, this is "C:\program
files\eclipse\plugins".
iText Delete all directories that start with "org.eclipse.birt".
Download and install BIRT as described in the BIRT
section above.
iText 1.3.
Restart Eclipse with the -clean option: eclipse -clean
The iText APIs are discussed at iText Homepage
Deploying to J2EE Server
If you are installing BIRT 2.2 M2 or later, download version 1.4.6 of
iText instead of 1.3. Please see Setting up the BIRT Viewer
prototype.js
This step is only required if installing BIRT 2.0.2 or earlier. Birt 2.1.1 Runtime Note:
Download prototype.js v1.4.0 from dev.conio.net. Copy it into the If you are installing the BIRT 2.1.1. or 2.1.2 Runtime
plugins/org.eclipse.birt.report.viewer_version/birt/ajax/lib directory.
(J2EE Application Server Deployment),
Copy itext-1.3.jar to /WebViewerExample/WEB-
INF/platform/plugins/com.lowagie.itext/lib.
JDBC Drivers
Copy iTextAsian.jar to /WebViewerExample/WEB-
INF/platform/plugins/com.lowagie.itext/lib.
You will likely want to use your own JDBC driver with BIRT. Use the
data source editor’s JDBC driver management wizard. To start the
wizard, open a BIRT report design, go to the Data Explorer view,
right click on “Data Sources” and select “New Data Source”.
Choose “JDBC Data Source” and click “Next”. In the next dialog, Birt 2.2M2 Runtime Note:
choose “Manage Drivers…” to bring up the “Manage JDBC Drivers” If you are installing the BIRT 2.2M2 or later Runtime
dialog. (J2EE Application Server Deployment),
Copy itext-1.4.6.jar to /WebViewerExample/WEB-
In the “JAR Files” tab, click on “Add…” to add the JAR file required INF/platform/plugins/com.lowagie.itext/lib.
by your JDBC driver. Then go to the “Driver” tab to confirm that the Copy iTextAsian.jar to /WebViewerExample/WEB-
list of drivers includes the new drivers added. You may also want to INF/platform/plugins/com.lowagie.itext/lib.
assign a display name and URL template for the new drivers in this
tab.
Common Problems
eclipse -clean
If you are on Windows, and are not familiar with how to invoke
Eclipse from the command line, do the following: