Errro starting Birt [message #176215] |
Mon, 10 July 2006 10:11  |
Eclipse User |
|
|
|
Hi everybody,
I have this error when i test my class with JUnit :
"org.eclipse.birt.core.exception.BirtException: $NO-RB$ Can't startup the
OSGI framework"
The error occurs on the line --> ReportEngine engine = new
ReportEngine(config);
the code of my class is :
EngineConfig config = new EngineConfig();
config.setEngineHome("C:/Other/Download/birt-runtime-2_0_1/birtruntime/Report
Engine");
ReportEngine engine = new ReportEngine(config);
IReportRunnable design =
engine.openReportDesign("C:/workspace_med/med_client/Diagnoses.rptdesign ");
IRunAndRenderTask task = engine.createRunAndRenderTask(design);
HTMLRenderOption options = new HTMLRenderOption();
options.setOutputFileName("C:/Diagnoses.html");
options.setOutputFormat("HTML");
task.setRenderOption(options);
// run the report and destroy the engine
task.run();
Could you help me ?
thanks a lot
Stéphane
|
|
|
|
Powered by
FUDForum. Page generated in 0.24872 seconds