[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Fix here for: java.lang.UnsatisfiedLinkError: no swt-win32-2133 in java.library.path

Hi - I had that same error (swt-win32-3014 in my case) and the ONLY way that
I could make it work (Windows XP Pro, fully updated) was to place the DLL
(which is located in
y:\Eclipse\plugins\org.eclipse.swt.win32_3.0.0\os\win32\x86\swt-win32-3014.d
ll for me) into the x:\WINDOWS\SYSTEM32 directory. The other 2 suggestions
did not work on my particular configuration.
Hope this helps.....

"Asaf" <asafr@xxxxxxxxxxxx> wrote in message
news:bf0l1i$8jq$1@xxxxxxxxxxxxxx
> found, its FAQ:
>
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/faq.html#missingdll
>
> "Asaf" <asafr@xxxxxxxxxxxx> wrote in message
> news:bf0keo$811$1@xxxxxxxxxxxxxx
> > Hello group. I'm trying to run simple program that builds shel ,display
> and
> > draw window:
> >
> > import org.eclipse.swt.widgets.*;
> > import org.eclipse.swt.layout.*;
> > import org.eclipse.swt.*;
> >
> > public class ShellTest
> > {
> >    public static void main(String [] args)
> >    {
> >        Display display = new Display();
> >        Shell shell     = new Shell(display);
> >        shell.setLayout(new RowLayout());
> >        Button b = new Button(shell,SWT.PUSH);
> >        b.setText("Ok");
> >        shell.setSize(200,200);
> >        shell.open();
> >     }
> > }
> >
> > When run I get :
> >
> > java.lang.UnsatisfiedLinkError: no swt-win32-2133 in java.library.path
> >     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
> >     at java.lang.Runtime.loadLibrary0(Runtime.java:788)
> >     at java.lang.System.loadLibrary(System.java:832)
> >     at org.eclipse.swt.internal.Library.loadLibrary(Library.java:108)
> >     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:1310)
> >     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 tests.ShellTest.main(ShellTest.java:10)   // This is in line:
> Display
> > display = new Display();
> > Exception in thread "main"
> >
> > Any ideas ?
> > Thanks.
> >
> >
>
>