1. Preparation work
1.1. Download Eclipse
http://www.eclipse.org/downloads/
The current version is Eclipse-jee-indigo-sr1-win32
Extract to D:\java\ide\eclipse-jee-indigo-SR1-win32
1.2. Download SWT
http://eclipse.org/swt/
Download Win32 version, the result is a zip file
2, Import ORG.ECLIPSE.SWT Project
Run Eclipse, click in the menu
File-> import-> general-exsiting projects to workspace-> next-> Select Archive file-> Select the downloaded text--click Browse , the project will appear Org.eclipse.swt->next
Import successful
3. New SWT Project
File-> new-> javaproject ...
Right-click Project Properties-> Java build path-> projects-> Point Add, add ORG.ECLIPSE.SWT Project
OK, I can write the SWT program.
4. Join JFace Support
Same 3
Properties-> Java Build path->libraries-> add external JARs. or add Library
Add the following jar package: (Jar pack is found 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, or you will report java.lang.noclassdeffounderror:org/eclipse/core/runtime/ Iprogressmonitor
Org.eclipse.jface_xxx.jar
Org.eclipse.jface.text_xxx.jar
Org.eclipse.osgi_xxx.jar
In order to solve the problem of jface Chinese, we should add
Org.eclipse.jface.nl1_3xx.jar
Refer to Http://www.cnblogs.com/jifeng/archive/2011/10/15/2213615.html
Ok