Home
Analytics
Unable to import org.eclipse.birt.****
Criel
Hello,
I am trying to integrate BIRT with my java project however i am unable to import any of the BIRT imports. I can create the report and get it all ready but am unable to do anything without being able to import. What would be the issue here? I have installed the BIRT pack from the eclipse marketplace. Why can't I import anything?
Thanks!
Find more posts tagged with
Comments
JasonW
If you want to call the BIRT engine from a Java app you can download the BIRT runtime, which has an engine/lib directory to include the jars to import. If you are building an Eclipse based app like an RCP application add the report engine plugin to your dependecies. Take a look at this download for examples:
http://www.birt-exchange.org/org/devshare/deploying-birt-reports/1344-eclipsecon-2011-api-examples/
Jason
Criel
Thanks for the link.
I am unable to find out how to get it into my eclipse however. Is there a URL I can use to install the BIRT runtime off of the eclipse "install new software" option?
Thanks for the help.
JasonW
You can download the runtime from here:
http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-2_6_2-201102191842/birt-runtime-2_6_2.zip
If you download the examples from the previous link they contain several eclipse projects that you can import into your workspace.
Jason
Criel
Thanks for the download, where can I find a tutorial on where to put it? So far I've only downloaded from the eclipse marketplace so it installed everything for me so I am not sure where exactly to put this in my eclipse folder.
JasonW
You do not put the runtime in the eclipse folder. Just extract it somewhere to your desktop and then create a java project in eclipse and include the libs in birt-runtime-2_6_2\ReportEngine\lib in your project build path (right click in eclipse navigator and select configure build path). You can import the APIs project from the examples project and configure the build path for that project to point to the jars. The examples set the birt home in code to point at a runtime that is on the filesystem:
IRunAndRenderTask task=null;
IReportEngine engine=null;
EngineConfig config = null;
try{
config = new EngineConfig( );
config.setBIRTHome("C:\\birt\\birt-runtime-2_6_2\\ReportEngine");
config.setLogConfig(null, Level.FINEST);
Platform.startup( config );
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
engine = factory.createReportEngine( config );
IReportRunnable design = null;
//Open the report design
design = engine.openReportDesign("Reports/master.rptdesign");
Does this make sense. BTW this is for creating a command line app. If you are building an RCP application the report engine plugin is already available in the designer. To use it this way just select your plugin.xml and add a dependency (dependencies tab of the manifest editor) for the report engine plugin.
Jason