Hi:
I'm trying to integrate BIRT into my app, but I'm getting a NullPointerException from the createFactoryObject. I have tried some examples from BIRT and code from posts (e.g [post=41045]
http://www.birt-exchange.com/forum/eclipse-birt-newsgroup-mirror/13225-embedding-birt-stand-alone-java-application.html#post41045[/post]).
I'm currently using Ganymede with BIRT 2.3.1 and my code this:
IReportEngine engine=null;
EngineConfig config = null;
try{
config = new EngineConfig( );
config.setEngineHome("/usr/bin/birt-runtime/ReportEngine");
config.setLogConfig("/home/boj/logs", java.util.logging.Level.FINEST);
Platform.startup( config );
IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
System.out.println(factory);
}catch( Exception ex){
ex.printStackTrace();
}
finally
{
Platform.shutdown( );
}
The line that prints factory object always returns null. Anyone can help me?
Thx.