A "java.lang.UnsatisfiedLinkError" error

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

A "java.lang.UnsatisfiedLinkError" error

Postby famanfo » Sun May 09, 2004 5:23 am

Hi,

I've been trying to follow along the AddressBook Application tutorial but when I try to run the application I get the following error:
=========================================
java.lang.UnsatisfiedLinkError: no swt-win32-3044 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:100)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.widgets.Display.internal_new_GC(Display.java:1605)
at org.eclipse.swt.graphics.Device.init(Device.java:555)
at org.eclipse.swt.widgets.Display.init(Display.java:1630)
at org.eclipse.swt.graphics.Device.<init>(Device.java:99)
at org.eclipse.swt.widgets.Display.<init>(Display.java:337)
at org.eclipse.swt.widgets.Display.<init>(Display.java:333)
at AddressBookUI.open(AddressBookUI.java:22)
at AddressBookUI.main(AddressBookUI.java:19)
Exception in thread "main"
================================================

On my build path I have, with others, the following:

ECLIPSE_HOME/plugins/org.eclipse.swt.win32_3.0.0/ws/win32/swt.jar

What am I doing wrong?
My configuration is as follows:

- j2sdk1.4.2_03
- Eclipse M8 on Win XP prof.
- v2.0.0 beta of SWT-designer

Thanks,

Francis.
famanfo
 
Posts: 1
Joined: Sun May 09, 2004 4:57 am

Re: A "java.lang.UnsatisfiedLinkError" error

Postby Eric Clayberg » Mon May 10, 2004 3:39 am

famanfo wrote:I've been trying to follow along the AddressBook Application tutorial but when I try to run the application I get the following error:
=========================================
java.lang.UnsatisfiedLinkError: no swt-win32-3044 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:100)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.widgets.Display.internal_new_GC(Display.java:1605)
at org.eclipse.swt.graphics.Device.init(Device.java:555)
at org.eclipse.swt.widgets.Display.init(Display.java:1630)
at org.eclipse.swt.graphics.Device.<init>(Device.java:99)
at org.eclipse.swt.widgets.Display.<init>(Display.java:337)
at org.eclipse.swt.widgets.Display.<init>(Display.java:333)
at AddressBookUI.open(AddressBookUI.java:22)
at AddressBookUI.main(AddressBookUI.java:19)
Exception in thread "main"
================================================

As stated in the Designer docs and tutorial, you need to make sure that the SWT DLL is on your path.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest