no swt-win32-3062

Tell us what you think about our book and report any errata. Sample chapters are available at http://www.qualityeclipse.com/

(Note: Previous Editions were called "Eclipse: Building Commercial Quality Plugins")

Moderators: Eric Clayberg, Dan Rubel

no swt-win32-3062

Postby bandi » Thu Sep 16, 2004 11:36 pm

Hi! I would find it fine but my firse application wouldn's run!
the problem is the following: :evil:

java.lang.UnsatisfiedLinkError: no swt-win32-3062 :?: 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.graphics.Device.init(Device.java:564)
at org.eclipse.swt.widgets.Display.init(Display.java:1780)
at org.eclipse.swt.graphics.Device.<init>(Device.java:100)
at org.eclipse.swt.widgets.Display.<init>(Display.java:355)
at org.eclipse.swt.widgets.Display.<init>(Display.java:351)
at org.eclipse.swt.widgets.Display.getDefault(Display.java:993)
at Bandi.main(Bandi.java:30)
Exception in thread "main"

what may the problem be? where should I set this library?

pls mail it to me if possibe!
bandi AT c2 DOT hu
thanx:
Bandi
bandi
 

Re: no swt-win32-3062

Postby Eric Clayberg » Fri Sep 17, 2004 2:54 am

bandi wrote:java.lang.UnsatisfiedLinkError: no swt-win32-3062 in java.library.path

You need to add the Eclipse SWT DLL to 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

Postby mdfst13 » Sun Mar 26, 2006 9:13 pm

In my case, I also had to extract the DLLs from their jar file. If you don't already have something installed, I have been told that WinZip is capable of extracting the DLLs from the jar file. After I had extracted the DLLs, I was able to point at it using the instructions from 4.2.1.3 "Running the Example" on page 161 of the 1st edition. Note that your path may be (in fact, probably should be) different from that shown. I used "double quotes" around the path to make up for the space in "Program Files".

Hth,
Matt
mdfst13
 
Posts: 2
Joined: Sun Mar 26, 2006 8:43 pm

Postby Eric Clayberg » Mon Mar 27, 2006 5:13 am

mdfst13 wrote:In my case, I also had to extract the DLLs from their jar file. If you don't already have something installed, I have been told that WinZip is capable of extracting the DLLs from the jar file. After I had extracted the DLLs, I was able to point at it using the instructions from 4.2.1.3 "Running the Example" on page 161 of the 1st edition. Note that your path may be (in fact, probably should be) different from that shown. I used "double quotes" around the path to make up for the space in "Program Files".

Note that this section has been updated in the Second Edition of the book to recommend using an SWT Application Launch Configuration (Run As > SWT Application) rather than a Java Application Launch Configuration (Run As > Java Application). Using an SWT launch configuration eliminates the need for extracting the SWT DLL from the SWT JAR file.

Extracting the SWT DLL from the SWT JAR was never necessary under Eclipse 3.0 as the DLL was provided as a file within the Eclipse SWT plugin directory. Eclipse 3.1 introduced the notion of JAR'ed plugins and the further need to extract the DLL from the JAR.
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 Book: Eclipse Plug-Ins (3rd Edition)

Who is online

Users browsing this forum: No registered users and 1 guest