Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-swt-dev] SWT Spinner Widget?

Grant,
 
I'm still getting this problem.  My app already loads and accesses swt-win32-xxx.dll using the load library path, so I know that the problem isn't that it can't fine the swt dll.  Here's the exception I get when I try to reference the spinner in my app:
 
     [java] java.lang.UnsatisfiedLinkError: no spinner in java.library.path
     [java]     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
     [java]     at java.lang.Runtime.loadLibrary0(Runtime.java:788)
     [java]     at java.lang.System.loadLibrary(System.java:834)
     [java]     at org.netamie.reference.spi.swt.Spinner.<clinit>(Spinner.java:1
8)
 
Am I supposed to be referencing "spinner" or if using the swt dll am i supposed to be referencing some other library?  I am wondering if the following code in the
Spinner class is the source of this problem:
 

static {

System.loadLibrary ("spinner");

}

Is this code unnecessary if you aren't using the spinner.dll (rather using the swt dll)?

 

BradO

-----Original Message-----
From: platform-swt-dev-admin@xxxxxxxxxxx [mailto:platform-swt-dev-admin@xxxxxxxxxxx]On Behalf Of Grant Gayed
Sent: Tuesday, September 16, 2003 9:11 AM
To: platform-swt-dev@xxxxxxxxxxx
Subject: RE: [platform-swt-dev] SWT Spinner Widget?


Brad,

When I said that the Appendix E "all platforms" spinner was emulated, I meant that it's composed of existing widgets (a Text and two Buttons) as opposed to using a native spinner, so it doesn't depend upon getting spinner.dll compiled.  These existing widgets still need to access their swt library though, so the problem you're likely seeing in this case is that swt-win32-xxxx.dll isn't being found.

I've attached a 13K zip with the following:
- The file with the text copying problem I mentioned had Spinner.java and SpinnerTest.java (Appendix B).  I've attached the corrected versions, which will be posted shortly.
- I've noticed that copying the makefile.mak out of Appendix C will also have a problem if it comes out "double spaced" when you paste it ('echo' unexpected).  I've attached the corrected version, which will be posted shortly.
- The compiled .dll

Grant



Back to the top