[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: BIRT Scripting - Class location problem

Stefan,

Instead of setting

hm.put( EngineConstants.APPCONTEXT_CLASSLOADER_KEY, ReportAdapter.class.getClassLoader());

this to the report adapter class, why not set it to the classloader of the class that executing the report engine and add your needed class your rcp apps classpath. You can also set the webapp class path key to add to the classpath for the engine:

        System.setProperty( EngineConstants.WEBAPP_CLASSPATH_KEY,
"/tmp/birt_jar/platform_model.jar" );

Jason

Stefan Häusler wrote:
Thanks Chris,

where exactly is this located? We have an RCP app. I changed it in config.ini of the app, but it made no difference.

There must be another solution so that BIRT engine can access the classes than switching the osgi classloader?

The needed java classes are located in one plugin of the rcp app.

Greets