Using BIRT Chart Engine in standalone java-application (MacOSX) [message #250151] |
Fri, 27 July 2007 08:47 |
Eclipse User |
|
|
|
Originally posted by: henning.tyke.de
Hi, I'm trying to use the birt chart engine in a little java-app to
display an alititudeprofile of my gps-device.
I've downloaded the chart-engine realease from the eclipse homepage and
imported all the jars to my poject.
Generating the chart seems to work, but I wasn't able to get it rendered
to a swt-canvas. In the FAQ they use this code:
// INITIALIZE THE SWT RENDERING DEVICE
final PluginSettings ps = PluginSettings.instance();
try {
idr = ps.getDevice("dv.SWT");
} catch (ChartException pex)
{
DefaultLoggerImpl.instance().log(pex);
}
running fails at calling PluginSettings.instance():
org.eclipse.birt.chart.util.PluginSettings instance
WARNUNG: Exception
org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
at org.eclipse.birt.core.framework.Platform.startup(Platform.ja va:89)
at org.eclipse.birt.chart.util.PluginSettings.instance(PluginSe ttings.java:294)
at org.eclipse.birt.chart.util.PluginSettings.instance(PluginSe ttings.java:274)
at chart.ChartViewerSWT.<init>(ChartViewerSWT.java:62)
at chart.ChartViewerSWT.main(ChartViewerSWT.java:31)
Caused by: org.eclipse.birt.core.exception.BirtException: Could not find the Framework - org.eclipse.osgi
at org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OS GILauncher.java:95)
at org.eclipse.birt.core.framework.Platform.startup(Platform.ja va:77)
I've installed BIRT via the Eclipse Update Function additionally an added
the Plugin Dependencies to my Build Path, but this didn't help.
Is there a way to get my chart rendered to a swt-canvas without using the
whole OSGI/EMF stuff?
Thanks, Henning
|
|
|
Powered by
FUDForum. Page generated in 0.05619 seconds