Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Problems using SWT
Problems using SWT [message #97506] Wed, 13 July 2005 03:26 Go to next message
Richard Bone is currently offline Richard BoneFriend
Messages: 13
Registered: July 2009
Junior Member
I've installed the versions of GEF and EMF that are attached to the
current VE build and they seem to be working correctly. My problem is
that whenever I try running one of the SWT smoke test samples, I get the
following stacktrace...

I've made sure to include the SWT library variable (even with JFace
support) on my build path. Not the jars, but the actual library. I am
using Java 1.5, but have set my compile settings to 1.4 for the project.


org.eclipse.swt.SWTException: Unable to load graphics library [GDI+ is
required] (java.lang.NoClassDefFoundError)
at org.eclipse.swt.SWT.error(SWT.java:2942)
at org.eclipse.swt.graphics.Device.checkGDIP(Device.java:175)
at org.eclipse.swt.graphics.GC.initGdip(GC.java:3193)
at org.eclipse.swt.graphics.GC.setAlpha(GC.java:3442)
at org.eclipse.draw2d.SWTGraphics.setAlpha(SWTGraphics.java:912 )
at
org.eclipse.ve.internal.cde.core.OutlineBorder.paint(Outline Border.java:68)
at org.eclipse.draw2d.Figure.paintBorder(Figure.java:1070)
at org.eclipse.draw2d.Figure.paint(Figure.java:1056)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at org.eclipse.draw2d.Figure.paint(Figure.java:1055)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at
org.eclipse.ve.internal.cde.core.ImageFigure.paintClientArea (ImageFigure.java:112)
at org.eclipse.draw2d.Figure.paint(Figure.java:1055)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at org.eclipse.draw2d.Figure.paint(Figure.java:1055)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at org.eclipse.draw2d.Figure.paint(Figure.java:1055)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at org.eclipse.draw2d.Figure.paint(Figure.java:1055)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at org.eclipse.draw2d.Figure.paint(Figure.java:1055)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at
org.eclipse.draw2d.ScalableFreeformLayeredPane.paintClientAr ea(ScalableFreeformLayeredPane.java:61)
at org.eclipse.draw2d.Figure.paint(Figure.java:1055)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at org.eclipse.draw2d.Figure.paint(Figure.java:1055)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1118)
at org.eclipse.draw2d.Viewport.paintClientArea(Viewport.java:15 6)
at org.eclipse.draw2d.Figure.paint(Figure.java:1055)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1091)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at org.eclipse.draw2d.Figure.paint(Figure.java:1055)
at
org.eclipse.draw2d.DeferredUpdateManager.repairDamage(Deferr edUpdateManager.java:225)
at
org.eclipse.draw2d.DeferredUpdateManager.performUpdate(Defer redUpdateManager.java:145)
at
org.eclipse.draw2d.DeferredUpdateManager$UpdateRequest.run(D eferredUpdateManager.java:40)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3057)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2716)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Re: Problems using SWT [message #97520 is a reply to message #97506] Wed, 13 July 2005 04:23 Go to previous messageGo to next message
Richard Bone is currently offline Richard BoneFriend
Messages: 13
Registered: July 2009
Junior Member
So I installed all the same plugins for the test pass on my thinkpad which
has JRE 1.5 installed, instead of my home Win2k SP4 machine running JDK
1.5. Everything now works without issue.

One thing I neglected to mention earlier, was that I could run the smoke
test shells as java beans just fine. The problem was that I couldn't look
at them in the VE.

On my win2k box I've also noticed the following trace, which I may have
missed the first time...

!STACK 0
org.eclipse.swt.SWTException: Unable to load graphics library [GDI+ is
required] (java.lang.UnsatisfiedLinkError:
C:\Download\eclipse\configuration\org.eclipse.osgi\bundles\1 17\1\.cp\swt-gdip-win32-3138.dll:
Can't find dependent libraries)
at org.eclipse.swt.SWT.error(SWT.java:2942)
at org.eclipse.swt.graphics.Device.checkGDIP(Device.java:175)
at org.eclipse.swt.graphics.GC.initGdip(GC.java:3193)
at org.eclipse.swt.graphics.GC.setAlpha(GC.java:3442)
at org.eclipse.draw2d.SWTGraphics.setAlpha(SWTGraphics.java:912 )
Re: Problems using SWT [message #97599 is a reply to message #97520] Wed, 13 July 2005 12:08 Go to previous message
Richard Bone is currently offline Richard BoneFriend
Messages: 13
Registered: July 2009
Junior Member
After talking with Gili it would seem this is due to alpha blending being
enabled. I'm going to pick up a newer build than the I20050708 and try
again.
Re: Problems using SWT [message #609046 is a reply to message #97506] Wed, 13 July 2005 04:23 Go to previous message
Richard Bone is currently offline Richard BoneFriend
Messages: 13
Registered: July 2009
Junior Member
So I installed all the same plugins for the test pass on my thinkpad which
has JRE 1.5 installed, instead of my home Win2k SP4 machine running JDK
1.5. Everything now works without issue.

One thing I neglected to mention earlier, was that I could run the smoke
test shells as java beans just fine. The problem was that I couldn't look
at them in the VE.

On my win2k box I've also noticed the following trace, which I may have
missed the first time...

!STACK 0
org.eclipse.swt.SWTException: Unable to load graphics library [GDI+ is
required] (java.lang.UnsatisfiedLinkError:
C:\Download\eclipse\configuration\org.eclipse.osgi\bundles\1 17\1\.cp\swt-gdip-win32-3138.dll:
Can't find dependent libraries)
at org.eclipse.swt.SWT.error(SWT.java:2942)
at org.eclipse.swt.graphics.Device.checkGDIP(Device.java:175)
at org.eclipse.swt.graphics.GC.initGdip(GC.java:3193)
at org.eclipse.swt.graphics.GC.setAlpha(GC.java:3442)
at org.eclipse.draw2d.SWTGraphics.setAlpha(SWTGraphics.java:912 )
Re: Problems using SWT [message #609051 is a reply to message #97520] Wed, 13 July 2005 12:08 Go to previous message
Richard Bone is currently offline Richard BoneFriend
Messages: 13
Registered: July 2009
Junior Member
After talking with Gili it would seem this is due to alpha blending being
enabled. I'm going to pick up a newer build than the I20050708 and try
again.
Previous Topic:SWT menus
Next Topic:Final Test Pass for 1.1
Goto Forum:
  


Current Time: Thu Apr 25 09:12:48 GMT 2024

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

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

Back to the top