[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] java.lang.UnsatisfiedLinkError: no swt-win32-2133 in java.library.path
|
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.