Running the Draw2d Tutorial [message #120051] |
Tue, 02 March 2004 11:06  |
Eclipse User |
|
|
|
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 11:33  |
Eclipse User |
|
|
|
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"
>
|
|
|
Powered by
FUDForum. Page generated in 0.03784 seconds