Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] java.lang.UnsatisfiedLinkError

I am new to eclipse, I just installed the latest eclipseSDK_3.1M6 & tptp builds… and wrote my first SWT app by just copying main() from the eclipse tutorial which is somewhat outdated. Somehow the dll file is not in the plugins\, but somewhere in the configurations\, so I copied it to the following location.

 

-Djava.library.path=C:\eclipse_org_SDK3.1M6\eclipse\plugins\org.eclipse.swt.win32_3.1.0\os\win32\x86

 

Still, it still can not find swt-win32-3128.dll. Can somebody help me with this?  

 

Thanks! 

-yu

 

 

java.lang.UnsatisfiedLinkError: no swt-win32-3128 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:123)

      at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)

      at org.eclipse.swt.widgets.Display.<clinit>(Display.java:125)

      at HelloWorld.main(HelloWorld.java:20)

Exception in thread "main"

 

public static void main(String[] args) {

                        Display display = new Display();

                        Shell shell = new Shell(display);

                        Label label = new Label(shell, SWT.CENTER);

                        label.setText("Hello_world");

                        label.setBounds(shell.getClientArea());

                        shell.open();

                        while (!shell.isDisposed()) {

                                    if (!display.readAndDispatch())

                                                display.sleep();

                        }

                        display.dispose();

}

 


Back to the top