|
Re: Problem when starting birt platform (migrating to birt 3.7) [message #761072 is a reply to message #761061] |
Mon, 05 December 2011 21:03 |
|
Do you have all the jars from the runtime/ReportEngine/lib directory or
just the BIRT one?
Jason
On 12/5/2011 3:44 PM, Anton wrote:
> I am trying to migrate my birt application to 3.7. I have read this guide
>
> http://www.eclipse.org/birt/phoenix/project/notable3.7.php
>
> added the runtime (approx 11 MB) lib to my project (everything compiles
> fine) and changed my engine code to:
>
> try {
> designConfig = new DesignConfig();
> // designConfig.setProperty("BIRT_HOME", path);
> Platform.startup(designConfig);
> // Platform.startup();
>
> IDesignEngineFactory designFactory = (IDesignEngineFactory)
> Platform.createFactoryObject(IDesignEngineFactory.EXTENSION_DESIGN_ENGINE_FACTORY);
>
> IDesignEngine designEngine =
> designFactory.createDesignEngine(designConfig);
> session = designEngine.newSessionHandle(ULocale.ENGLISH);
> } catch (Exception e) {
> logEngineError(e);
> }
>
>
> Doing this:
>
> Platform.startup(designConfig);
>
> gives:
>
> java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException
> at
> org.eclipse.birt.core.framework.Platform.createPlatformLauncher(Platform.java:115)
>
>
> Not starting the Platform results in the below designFactory being null:
>
> IDesignEngineFactory designFactory = (IDesignEngineFactory)
> Platform.createFactoryObject(IDesignEngineFactory.EXTENSION_DESIGN_ENGINE_FACTORY);
>
>
> Any ideas on how the new pattern should be implemented - its seems that
> its not enough to simply change:
>
> designConfig = new DesignConfig();
> designConfig.setProperty("BIRT_HOME", path);
>
> to :
>
> designConfig = new DesignConfig();
>
> ?
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03216 seconds