Skip to main content



      Home
Home » Archived » BIRT » Cairo error with BIRT charts on Solaris
Cairo error with BIRT charts on Solaris [message #207722] Wed, 20 December 2006 11:02 Go to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------040304060202070904040106
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I am trying to get my Eclipse application working on Solaris. We make
use of a number of BIRT charts programmatically. When I try to bring a
chart up, I get an error saying that I need Cairo (see attachment).
Please excuse my ignorance, but I have no idea where to get Cairo or
where to put it once I've got it or how Eclipse will know it is there.
Your help is *very* much appreciated.

Keith


--------------040304060202070904040106
Content-Type: text/plain;
name="stack-trace.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="stack-trace.txt"

org.eclipse.swt.SWTException: Unable to load graphics library [Cairo is required] (java.lang.NoClassDefFoundError)
at org.eclipse.swt.SWT.error(SWT.java:3374)
at org.eclipse.swt.graphics.Device.checkCairo(Device.java:172)
at org.eclipse.swt.graphics.GC.initCairo(GC.java:2491)
at org.eclipse.swt.graphics.GC.setAntialias(GC.java:2711)
at org.eclipse.birt.chart.device.swt.R31Enhance.setAntialias(R3 1Enhance.java:112)
at org.eclipse.birt.chart.device.swt.SwtRendererImpl.setPropert y(SwtRendererImpl.java:1892)
at com.tsccos.rwb.vstrp.ui.tools.AbstractChartDetailsPage.paint Control(AbstractChartDetailsPage.java:161)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:83)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
at org.eclipse.swt.widgets.Control.gtk_expose_event(Control.jav a:2024)
at org.eclipse.swt.widgets.Composite.gtk_expose_event(Composite .java:605)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1430)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3798 )
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:52 73)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1135)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1428)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2840)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.eclipse.swt.graphics.Device.checkCairo(Device.java:169)
... 38 more
--------------040304060202070904040106--
Re: Cairo error with BIRT charts on Solaris [message #208399 is a reply to message #207722] Thu, 28 December 2006 08:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Check this entry of the FAQ:
http://wiki.eclipse.org/index.php/BIRT/FAQ/Charts2.1#GDI.2B_ Error_in_BIRT_Designer

Thanks,

David

"Keith McQueen" <kmcqueen@tsccos.com> wrote in message
news:embmqv$2st$1@utils.eclipse.org...
>I am trying to get my Eclipse application working on Solaris. We make
> use of a number of BIRT charts programmatically. When I try to bring a
> chart up, I get an error saying that I need Cairo (see attachment).
> Please excuse my ignorance, but I have no idea where to get Cairo or
> where to put it once I've got it or how Eclipse will know it is there.
> Your help is *very* much appreciated.
>
> Keith
>
>


------------------------------------------------------------ --------------------


> org.eclipse.swt.SWTException: Unable to load graphics library [Cairo is
> required] (java.lang.NoClassDefFoundError)
> at org.eclipse.swt.SWT.error(SWT.java:3374)
> at org.eclipse.swt.graphics.Device.checkCairo(Device.java:172)
> at org.eclipse.swt.graphics.GC.initCairo(GC.java:2491)
> at org.eclipse.swt.graphics.GC.setAntialias(GC.java:2711)
> at
> org.eclipse.birt.chart.device.swt.R31Enhance.setAntialias(R3 1Enhance.java:112)
> at
> org.eclipse.birt.chart.device.swt.SwtRendererImpl.setPropert y(SwtRendererImpl.java:1892)
> at
> com.tsccos.rwb.vstrp.ui.tools.AbstractChartDetailsPage.paint Control(AbstractChartDetailsPage.java:161)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:83)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
> at org.eclipse.swt.widgets.Control.gtk_expose_event(Control.jav a:2024)
> at org.eclipse.swt.widgets.Composite.gtk_expose_event(Composite .java:605)
> at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1430)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3798 )
> at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
> at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:52 73)
> at org.eclipse.swt.widgets.Display.eventProc(Display.java:1135)
> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive
> Method)
> at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1428)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2840)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
> Caused by: java.lang.NoClassDefFoundError
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:141)
> at org.eclipse.swt.graphics.Device.checkCairo(Device.java:169)
> ... 38 more
Re: Cairo error with BIRT charts on Solaris [message #208738 is a reply to message #208399] Tue, 02 January 2007 16:39 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the reply, but I don't think you understood what the problem
is. I am not getting the error alluded to in the FAQ. I am not running
a "headless" server on Unix. I am running the Eclipse Platform on
Solaris/Motif. When my code causes the chart to be drawn I get an error
saying that it was unable to load the graphics library (Cairo
required). It seems that Cairo is some sort of graphics library for
*nix, but I don't really know anything about it (do I have it? where do
I get it? where do I put it? how do I tell eclipse where it is? etc.).

Any help is much appreciated,
Keith

David Michonneau wrote:
> Hi,
>
> Check this entry of the FAQ:
> http://wiki.eclipse.org/index.php/BIRT/FAQ/Charts2.1#GDI.2B_ Error_in_BIRT_Designer
>
> Thanks,
>
> David
>
> "Keith McQueen" <kmcqueen@tsccos.com> wrote in message
> news:embmqv$2st$1@utils.eclipse.org...
>> I am trying to get my Eclipse application working on Solaris. We make
>> use of a number of BIRT charts programmatically. When I try to bring a
>> chart up, I get an error saying that I need Cairo (see attachment).
>> Please excuse my ignorance, but I have no idea where to get Cairo or
>> where to put it once I've got it or how Eclipse will know it is there.
>> Your help is *very* much appreciated.
>>
>> Keith
>>
>>
>
>
> ------------------------------------------------------------ --------------------
>
>
>> org.eclipse.swt.SWTException: Unable to load graphics library [Cairo is
>> required] (java.lang.NoClassDefFoundError)
>> at org.eclipse.swt.SWT.error(SWT.java:3374)
>> at org.eclipse.swt.graphics.Device.checkCairo(Device.java:172)
>> at org.eclipse.swt.graphics.GC.initCairo(GC.java:2491)
>> at org.eclipse.swt.graphics.GC.setAntialias(GC.java:2711)
>> at
>> org.eclipse.birt.chart.device.swt.R31Enhance.setAntialias(R3 1Enhance.java:112)
>> at
>> org.eclipse.birt.chart.device.swt.SwtRendererImpl.setPropert y(SwtRendererImpl.java:1892)
>> at
>> com.tsccos.rwb.vstrp.ui.tools.AbstractChartDetailsPage.paint Control(AbstractChartDetailsPage.java:161)
>> at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:83)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
>> at org.eclipse.swt.widgets.Control.gtk_expose_event(Control.jav a:2024)
>> at org.eclipse.swt.widgets.Composite.gtk_expose_event(Composite .java:605)
>> at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1430)
>> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3798 )
>> at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
>> at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:52 73)
>> at org.eclipse.swt.widgets.Display.eventProc(Display.java:1135)
>> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive
>> Method)
>> at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1428)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2840)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>> at
>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:324)
>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>> at org.eclipse.core.launcher.Main.main(Main.java:952)
>> Caused by: java.lang.NoClassDefFoundError
>> at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:141)
>> at org.eclipse.swt.graphics.Device.checkCairo(Device.java:169)
>> ... 38 more
>
>
Re: Cairo error with BIRT charts on Solaris [message #208929 is a reply to message #208738] Wed, 03 January 2007 08:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi Keith,

I was mentioned the GDI error, not the headless one in the FAQ. because it's
the last link on the page, you might be tempted to read the previous FAQ
entry...

So there is a link there, that points to the Cairo download. I paste it here
for you for your convenience:

http://cairographics.org/

At the time I am posting the site is down, but hopefully it should be up
soon. Once you install Cairo on the machine, BIRT will automatically use it,
no configuration is needed.

If you don't want to go through the hassle of doing this, you can simply
start Eclipse with eclipse.exe -vmargs -DR31ENHANCE=false

That will disable the advanced SWT rendering that needs Cairo to work. Some
of the charts won't look as good, particularly antialias and gradients, but
maybe that won't affect you if you use simple charts.

Thanks,

David

"Keith McQueen" <kmcqueen@tsccos.com> wrote in message
news:eneje2$sp$1@utils.eclipse.org...
> Thanks for the reply, but I don't think you understood what the problem
> is. I am not getting the error alluded to in the FAQ. I am not running a
> "headless" server on Unix. I am running the Eclipse Platform on
> Solaris/Motif. When my code causes the chart to be drawn I get an error
> saying that it was unable to load the graphics library (Cairo required).
> It seems that Cairo is some sort of graphics library for *nix, but I don't
> really know anything about it (do I have it? where do I get it? where do I
> put it? how do I tell eclipse where it is? etc.).
>
> Any help is much appreciated,
> Keith
>
> David Michonneau wrote:
>> Hi,
>>
>> Check this entry of the FAQ:
>> http://wiki.eclipse.org/index.php/BIRT/FAQ/Charts2.1#GDI.2B_ Error_in_BIRT_Designer
>>
>> Thanks,
>>
>> David
>>
>> "Keith McQueen" <kmcqueen@tsccos.com> wrote in message
>> news:embmqv$2st$1@utils.eclipse.org...
>>> I am trying to get my Eclipse application working on Solaris. We make
>>> use of a number of BIRT charts programmatically. When I try to bring a
>>> chart up, I get an error saying that I need Cairo (see attachment).
>>> Please excuse my ignorance, but I have no idea where to get Cairo or
>>> where to put it once I've got it or how Eclipse will know it is there.
>>> Your help is *very* much appreciated.
>>>
>>> Keith
>>>
>>>
>>
>>
>> ------------------------------------------------------------ --------------------
>>
>>
>>> org.eclipse.swt.SWTException: Unable to load graphics library [Cairo is
>>> required] (java.lang.NoClassDefFoundError)
>>> at org.eclipse.swt.SWT.error(SWT.java:3374)
>>> at org.eclipse.swt.graphics.Device.checkCairo(Device.java:172)
>>> at org.eclipse.swt.graphics.GC.initCairo(GC.java:2491)
>>> at org.eclipse.swt.graphics.GC.setAntialias(GC.java:2711)
>>> at
>>> org.eclipse.birt.chart.device.swt.R31Enhance.setAntialias(R3 1Enhance.java:112)
>>> at
>>> org.eclipse.birt.chart.device.swt.SwtRendererImpl.setPropert y(SwtRendererImpl.java:1892)
>>> at
>>> com.tsccos.rwb.vstrp.ui.tools.AbstractChartDetailsPage.paint Control(AbstractChartDetailsPage.java:161)
>>> at
>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:83)
>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
>>> at org.eclipse.swt.widgets.Control.gtk_expose_event(Control.jav a:2024)
>>> at
>>> org.eclipse.swt.widgets.Composite.gtk_expose_event(Composite .java:605)
>>> at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1430)
>>> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3798 )
>>> at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
>>> at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:52 73)
>>> at org.eclipse.swt.widgets.Display.eventProc(Display.java:1135)
>>> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive
>>> Method)
>>> at
>>> org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1428)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2840)
>>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>> at
>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:324)
>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>> at org.eclipse.core.launcher.Main.main(Main.java:952)
>>> Caused by: java.lang.NoClassDefFoundError
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:141)
>>> at org.eclipse.swt.graphics.Device.checkCairo(Device.java:169)
>>> ... 38 more
>>
Re: Cairo error with BIRT charts on Solaris [message #211607 is a reply to message #208929] Mon, 15 January 2007 19:49 Go to previous message
Eclipse UserFriend
Thanks. I apologize for not even noticing the other WIKI entry. At
first I didn't think it applied, but now I see what you're saying. I'll
give it a try. Thanks again.

Keith

David Michonneau wrote:
> Hi Keith,
>
> I was mentioned the GDI error, not the headless one in the FAQ. because it's
> the last link on the page, you might be tempted to read the previous FAQ
> entry...
>
> So there is a link there, that points to the Cairo download. I paste it here
> for you for your convenience:
>
> http://cairographics.org/
>
> At the time I am posting the site is down, but hopefully it should be up
> soon. Once you install Cairo on the machine, BIRT will automatically use it,
> no configuration is needed.
>
> If you don't want to go through the hassle of doing this, you can simply
> start Eclipse with eclipse.exe -vmargs -DR31ENHANCE=false
>
> That will disable the advanced SWT rendering that needs Cairo to work. Some
> of the charts won't look as good, particularly antialias and gradients, but
> maybe that won't affect you if you use simple charts.
>
> Thanks,
>
> David
>
> "Keith McQueen" <kmcqueen@tsccos.com> wrote in message
> news:eneje2$sp$1@utils.eclipse.org...
>> Thanks for the reply, but I don't think you understood what the problem
>> is. I am not getting the error alluded to in the FAQ. I am not running a
>> "headless" server on Unix. I am running the Eclipse Platform on
>> Solaris/Motif. When my code causes the chart to be drawn I get an error
>> saying that it was unable to load the graphics library (Cairo required).
>> It seems that Cairo is some sort of graphics library for *nix, but I don't
>> really know anything about it (do I have it? where do I get it? where do I
>> put it? how do I tell eclipse where it is? etc.).
>>
>> Any help is much appreciated,
>> Keith
>>
>> David Michonneau wrote:
>>> Hi,
>>>
>>> Check this entry of the FAQ:
>>> http://wiki.eclipse.org/index.php/BIRT/FAQ/Charts2.1#GDI.2B_ Error_in_BIRT_Designer
>>>
>>> Thanks,
>>>
>>> David
>>>
>>> "Keith McQueen" <kmcqueen@tsccos.com> wrote in message
>>> news:embmqv$2st$1@utils.eclipse.org...
>>>> I am trying to get my Eclipse application working on Solaris. We make
>>>> use of a number of BIRT charts programmatically. When I try to bring a
>>>> chart up, I get an error saying that I need Cairo (see attachment).
>>>> Please excuse my ignorance, but I have no idea where to get Cairo or
>>>> where to put it once I've got it or how Eclipse will know it is there.
>>>> Your help is *very* much appreciated.
>>>>
>>>> Keith
>>>>
>>>>
>>>
>>> ------------------------------------------------------------ --------------------
>>>
>>>
>>>> org.eclipse.swt.SWTException: Unable to load graphics library [Cairo is
>>>> required] (java.lang.NoClassDefFoundError)
>>>> at org.eclipse.swt.SWT.error(SWT.java:3374)
>>>> at org.eclipse.swt.graphics.Device.checkCairo(Device.java:172)
>>>> at org.eclipse.swt.graphics.GC.initCairo(GC.java:2491)
>>>> at org.eclipse.swt.graphics.GC.setAntialias(GC.java:2711)
>>>> at
>>>> org.eclipse.birt.chart.device.swt.R31Enhance.setAntialias(R3 1Enhance.java:112)
>>>> at
>>>> org.eclipse.birt.chart.device.swt.SwtRendererImpl.setPropert y(SwtRendererImpl.java:1892)
>>>> at
>>>> com.tsccos.rwb.vstrp.ui.tools.AbstractChartDetailsPage.paint Control(AbstractChartDetailsPage.java:161)
>>>> at
>>>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:83)
>>>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
>>>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
>>>> at org.eclipse.swt.widgets.Control.gtk_expose_event(Control.jav a:2024)
>>>> at
>>>> org.eclipse.swt.widgets.Composite.gtk_expose_event(Composite .java:605)
>>>> at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1430)
>>>> at org.eclipse.swt.widgets.Display.windowProc(Display.java:3798 )
>>>> at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
>>>> at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:52 73)
>>>> at org.eclipse.swt.widgets.Display.eventProc(Display.java:1135)
>>>> at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Na tive
>>>> Method)
>>>> at
>>>> org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS. java:1428)
>>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2840)
>>>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
>>>> at
>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
>>>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>> at
>>>> org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
>>>> at
>>>> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>>>> at java.lang.reflect.Method.invoke(Method.java:324)
>>>> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
>>>> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
>>>> at org.eclipse.core.launcher.Main.run(Main.java:977)
>>>> at org.eclipse.core.launcher.Main.main(Main.java:952)
>>>> Caused by: java.lang.NoClassDefFoundError
>>>> at java.lang.Class.forName0(Native Method)
>>>> at java.lang.Class.forName(Class.java:141)
>>>> at org.eclipse.swt.graphics.Device.checkCairo(Device.java:169)
>>>> ... 38 more
>
Previous Topic:Empty row set problem for chart
Next Topic:MS-SQL Stored Procedures
Goto Forum:
  


Current Time: Thu May 08 22:12:53 EDT 2025

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

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

Back to the top