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

hi,
did you specify the dll also? if not go to Run->Run and select your file name, then under Arguments type:


- Djava.library.path=C:\eclipse\plugins\org.eclipse.swt.win32_2.1.0\os\win32\x86

path part should be where the swt dll is, i'm using windows so i need the win32 swt dll, if you using the same just look for it under the same place.

On Tue, 15 Jul 2003 13:17:01 +0200, Asaf <asafr@xxxxxxxxxxxx> wrote:

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.






-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/