Hello, <br />
<br />
I'm running Eclipse 3.5, source pulled from Versions/source/BIRT_2_5_1_Release_200909171447. I've imported all the 105 projects, the code compiles and everything seems alright so far.<br />
<br />
I've followed <a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/build/buildInstructions.php'>How to Build BIRT from CVS</a> to check out the source code of BIRT with 2 exceptions:<ul class='bbcol decimal'><li>org.eclipse.birt.report.data.oda.flatfile*, org.eclipse.birt.report.tests*, org.eclipse.birt.tests* weren't removed (because they don't exist any more).</li><li>I haven't set the compilation level and code compliance level to 1.4 yet the code does compile.</li></ul>
I would like to start working with the system. In a new project which depends on all of the mentioned 105 other projects I'm running the following code:<br />
<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>public class Test {
/**
*
@param args
*
@throws BirtException
*/
public static void main(String[] args) throws BirtException {
// TODO Auto-generated method stub
Platform.startup(null);
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
IReportEngine engine = factory.createReportEngine(null);
}
}
</pre>which gives<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>Exception in thread "main" org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:91)
at com.ml.integration.Test.main(Test.java:16)
Caused by: org.eclipse.birt.core.exception.CoreException
at org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:90)
at org.eclipse.birt.core.framework.Platform.startup(Platform.java:79)
... 1 more
</pre>Why? Do I need to reference the engine home if I'm running from source, and if I do to where?<br />
<br />
Thank you for the help,<br />
Maxim.