Original http://blog.csdn.net/kimsoft/article/details/7239651
1. Preparations
1.1 download eclipse
Http://www.eclipse.org/downloads/
The current version is eclipse-jee-indigo-SR1-win32
Decompress to d: \ java \ ide \ eclipse-jee-indigo-SR1-win32
1.2 download swt
Http://eclipse.org/swt/
Download the win32 version. The result is a zip file.
2. Import the org. eclipse. swt Project
Run eclipse and click
File-> import-> general-exsiting projects to workspace-> next-> select archive file-> select the downloaded file-Click browse, and the project org. eclipse. swt-> next
Imported
3. Create a SWT Project
File-> new-> javaproject...
Right-click Project properties-> java build path-> projects-> click add to add the org. eclipse. swt project.
OK. You can write the SWT program.
4. Added Jface support
Same as 3
Properties-> java build path-> Libraries-> add external JARs .. or Add Library
Add the following jar package: (find the jar package in the plugins subdirectory of the eclipse installation directory)
Org. eclipse. core. commands_xxx.jar
Org. eclipse. core. runtime_xxx.jar
Org. eclipse. equinox. common_xxx.jar // must be added. Otherwise, java. lang. NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor will be reported.
Org. eclipse. jface_xxx.jar
Org. eclipse. jface. text_xxx.jar
Org. eclipse. osgi_xxx.jar
Add
Org. eclipse. jface. nl1_3xx.jar
See http://www.cnblogs.com/jifeng/archive/2011/10/15/2213615.html
OK