Skip to main content



      Home
Home » Archived » BIRT » Using BIRT Chart Engine in standalone java-application (MacOSX)
Using BIRT Chart Engine in standalone java-application (MacOSX) [message #250151] Fri, 27 July 2007 08:47
Eclipse UserFriend
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
Previous Topic:ScriptedDataSet Binding in Header Problem
Next Topic:xls emitter....error on style when opening in excel
Goto Forum:
  


Current Time: Sun May 11 17:32:23 EDT 2025

Powered by FUDForum. Page generated in 0.05619 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top