---
title: "BIRT之使用历程"
author: "feigme"
date: "2007-10-26T16:13:49Z"
tags: []
slug: "birt"
draft: false
lastmod: "2007-10-26T16:13:49Z"
id: 135760
url: "https://feigme.iteye.com/blog/135760"
---

BIRT的易使用性及强大，成为项目的首选

在download.eclipse.org/birt/downloads可以下载最新的版本

当然也提供了不错的DEMO来供学习和参考 birt-runtime-2\_2\_1\\WebViewerExample

不过观看例子之前，先要在 WebViewerExample\\WEB-INF\\lib  下加入commons-logging.jar 包

要在项目中加入BIRT也比较简单，在Eclipse中加入BIRT的插件，然后新建一个项目

在右键中选择Business Intelligence and Reporting Tools &gt; Import BIRT runtime component...

然后适当的修改即可，当然默认也可，在import成功后，项目的包还是不齐全的，建议可以先建立一个BIRT的项目

然后将这个项目的包copy过来比较方便！：）此时自带的example应该可以看到了

如果此时发布自己的report将还会出现一个问题

  Server: Tomcat 6.0  
  Birt: 2.2.1  
  War file was a slightly modified version of the  
  birt-runtime-2\_2\_1\\WebViewerExample  
   
  The war file had not been touched before.  
  Full trace below:  
   
  org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager  
  loadAndRegisterDriver  
  WARNING: Failed to load JDBC driver class: oracle.jdbc.driver.OracleDriver  
  12:14:14,671 ERROR \[STDERR] Oct 12, 2007 12:14:14 PM  
  org.eclipse.birt.data.engine.odaconsumer.ConnectionManager openConnection  
  SEVERE: Cannot open connection.  
  org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot load JDBC  
  Driver class: oracle.jdbc.driver.OracleDriver  
  at  
  org.eclipse.birt.report.data.oda.jdbc.JDBCDriverManager.loadAndRegisterDriver(JDBCDriverManager.java:605)  
  at

这个问题在eclipse的show bug中经常看到

相关的解决方法是：查看  
\\workspace\\Birt\\WebContent\\WEB-INF\\platform\\plugins\\org.eclipse.birt.report.data.oda.jdbc\_2.2.1.r22x\_v20070919\\drivers  
中的  readme.txt

并把你的数据库驱动程序加到此目录

便不会再有问题了

\------------------------------------------------------------------

在使用中发现2.2.1版本的BIRT，会经常导致eclipse死掉，频繁的当机

动作再快点的话就准备直接重启电脑吧，相对于这个版本来说，真是很难容忍

好在BIRT迅速的出了2.2.1.1版本，暂时缓解了这个烦恼

实践发现，死掉的次数少了很多很多，但是还是有发生 - -#

另外新版本对交叉表处理也有了提升！

。。。

待续

待續