setBIRTHome() issue with RC2 [message #242961] |
Fri, 15 June 2007 13:38 |
Eclipse User |
|
|
|
Originally posted by: Arthur1968.gmail.com
When I use the 2.2 RC2 Runtime to create a report and I set the BIRT_HOME
path to let's say "c:\runtime22rc2\reportengine" the engine crashes with
something like "Could not start OSG framework" and it mentiones the Birt
home as being "c:\runtime22rc2\reportenginec:\runtime22rc2\reportengine" No
wonder it cannot start the engine.
When I change the environment variable to the 2.2 M6 path
"c:\runtime22m6\reportengine" it works fine.
Ron
|
|
|
Re: setBIRTHome() issue with RC2 [message #243166 is a reply to message #242961] |
Mon, 18 June 2007 19:04 |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Ron,
Can you post the code snippet. I am using code similar to this with RC2
and it works fine.
IReportEngine engine=null;
EngineConfig config = null;
try{
config = new EngineConfig( );
config.setBIRTHome("C:/birt/birt-runtime-2.2rc2/birt-runtime-2_2_0/ReportEngine ");
config.setLogConfig(null, Level.OFF);
Platform.startup( config );
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(
IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
engine = factory.createReportEngine( config );
}catch( Exception ex){
ex.printStackTrace();
}
IReportRunnable design = null;
//Open the report design
design = engine.openReportDesign("Reports/customers.rptdesign");
IRunTask task = engine.createRunTask(design);
Jason
Arthur wrote:
> When I use the 2.2 RC2 Runtime to create a report and I set the BIRT_HOME
> path to let's say "c:\runtime22rc2\reportengine" the engine crashes with
> something like "Could not start OSG framework" and it mentiones the Birt
> home as being "c:\runtime22rc2\reportenginec:\runtime22rc2\reportengine" No
> wonder it cannot start the engine.
>
> When I change the environment variable to the 2.2 M6 path
> "c:\runtime22m6\reportengine" it works fine.
>
> Ron
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04031 seconds