eclipse - Java helloworldswt tutorial doesn't work -


i new java/swt/eclipse , trying learn swt , having difficulties following code working.can ?

code:

import org.eclipse.swt.widgets.display;  import org.eclipse.swt.widgets.shell;  public class hellohelloswt {      public static void main(string[] args) {          display display = new display();         shell shell = new shell(display);         shell.settext("hello world!");         shell.open();         while(!shell.isdisposed()){             display.sleep();         }         display.dispose();         shell.close();     }} 

well tried running same way first tutorial, error popped up:

error:

exception in thread "main" java.lang.unsatisfiedlinkerror: not load swt library. reasons:      no swt-win32-4333 in java.library.path     no swt-win32 in java.library.path     can't load library: c:\users\sdp0121\.swt\lib\win32\x86\swt-win32-4333.dll     can't load library: c:\users\sdp0121\.swt\lib\win32\x86\swt-win32.dll      @ org.eclipse.swt.internal.library.loadlibrary(library.java:331)     @ org.eclipse.swt.internal.library.loadlibrary(library.java:240)     @ org.eclipse.swt.internal.c.<clinit>(c.java:21)     @ org.eclipse.swt.widgets.display.<clinit>(display.java:138)     @ hellohelloswt.main(hellohelloswt.java:8) 

go step of tutorial titled "configure java project". go project properties , select java build path expand reference swt project (small triangle before project name). if says "none", click edit , find swt project in workspace. hope helps.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -