In order to develop SWT application in Eclipse environment, we have to import SWT library into Eclipse Workspace manually.

Here is the steps to import SWT library

1) Right click on Java Project – Click Properties
2) Click Java Build Path –> Libraries –> Add Variable –> Configure Variable

3) Click New –> Type a new variable name “SWT_LIB” in Name field
4) Click File and browse to SWT library file

P.S SWT library is located at Eclipse’s plugin folder, it’s name usually formatted as org.eclipse.swt.win32.win32.x86_versionnumber.jar

For Example,

D:/J2EE/eclipse/plugins/org.eclipse.swt.win32.win32.x86_3.3.2.v3347a.jar

4) Done

We can start our SWT development work now. Happy Coding ~

Any Java questions or problems? please post at this JavaNullPointer.com forum, see you there ~