[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: BIRT_HOME

Chris,

If you are running a command line application the BIRT plugins will not be already started. If you are writting an RCP application setting BIRT_HOME ="" would work.

Jason

Chris wrote:
Hello Jason,

Hmm, Somehow this does not work.
Here are snippets of my code:
Mostly taken from samples downloaded from the subversion server http://longlake.minnovent.com/repos/birt_example
(I think that's yours anyways).



EngineConfig config=new EngineConfig(); config.setBIRTHome(""); config.setLogCongig("C:/tmp", Level.FINEST); Platform.startup(config);

IReportEngineFactory factory=(IReportEngineFactory)Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);



Some observations:

a) If I do setBIRTHome(""); I get errors starting up the Platform
(org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI Framework)


b) Ok - I assumed this is, as it is already running in eclipse.
   So I simply tried to comment out "Platform.startup(config)"

   In this case Platform.createFactoryObject returns null.

c) I extra downloaded (from the subverison server again) birt_runtime_lib_222 and I set BIRTHome to this project

   Then the sample suddenly worked perfect!!!


Ok - I got it running, but there should be a better solution, shouldn't it? I can't believe that I have to download the Birt Runtime additionally to the already existing Birt plugins in eclipse.


So I assume I made a mistake - I simply don't know which ;-)

Regards,
  Chris