Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Running the Draw2d Tutorial
Running the Draw2d Tutorial [message #120051] Tue, 02 March 2004 16:06 Go to next message
Bob Donovan is currently offline Bob DonovanFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

I am trying out the "Display a UML Diagram using Draw2D" tutorial. I
created a java project and added gef.jar, draw2d.jar, and
/ws/win32/swt.jar (I am on windows) to my .classpath.

When I run it as a java application, I get the following error (below),
can anyone tell me what I need to add to my project to get this to work.
Looks like the program is dying when it hits the this line:

Display d = new Display();

Thanks, Bob


java.lang.UnsatisfiedLinkError: no swt-win32-2135 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:10 8)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:46)
at org.eclipse.swt.widgets.Display.internal_new_GC(Display.java :1291)
at org.eclipse.swt.graphics.Device.init(Device.java:547)
at org.eclipse.swt.widgets.Display.init(Display.java:1316)
at org.eclipse.swt.graphics.Device.<init>(Device.java:96)
at org.eclipse.swt.widgets.Display.<init>(Display.java:291)
at org.eclipse.swt.widgets.Display.<init>(Display.java:287)
at UMLClassFigureTest.main(UMLClassFigureTest.java:15)
Exception in thread "main"
Re: Running the Draw2d Tutorial [message #120064 is a reply to message #120051] Tue, 02 March 2004 16:33 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Bob,

The swt dll file is not being located. You can try putting it in your
\windows\system32\ folder, or you could try selecting Run .. from Eclipse,
tabbing to arguments, and specifying -Djava.library.path=(the path to the
dll file).

This dll is likely found in \os\win32\x86 (where you found the swt.jar).


"Bob Donovan" <bob.donovan@ugsplm.com> wrote in message
news:c22bdm$ckt$1@eclipse.org...
> Hi,
>
> I am trying out the "Display a UML Diagram using Draw2D" tutorial. I
> created a java project and added gef.jar, draw2d.jar, and
> /ws/win32/swt.jar (I am on windows) to my .classpath.
>
> When I run it as a java application, I get the following error (below),
> can anyone tell me what I need to add to my project to get this to work.
> Looks like the program is dying when it hits the this line:
>
> Display d = new Display();
>
> Thanks, Bob
>
>
> java.lang.UnsatisfiedLinkError: no swt-win32-2135 in java.library.path
> at java.lang.ClassLoader.loadLibrary(Unknown Source)
> at java.lang.Runtime.loadLibrary0(Unknown Source)
> at java.lang.System.loadLibrary(Unknown Source)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:10 8)
> at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:46)
> at org.eclipse.swt.widgets.Display.internal_new_GC(Display.java :1291)
> at org.eclipse.swt.graphics.Device.init(Device.java:547)
> at org.eclipse.swt.widgets.Display.init(Display.java:1316)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:96)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:291)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:287)
> at UMLClassFigureTest.main(UMLClassFigureTest.java:15)
> Exception in thread "main"
>
Previous Topic:Attaching one edit part to another.
Next Topic:Is GEF the BEST choice?
Goto Forum:
  


Current Time: Sun Sep 01 05:08:56 GMT 2024

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

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

Back to the top