Under the recommendation of DX, start to turn to the embrace of Eclipse. Use SWT in Eclipse, everything goes well, just set Libraries in Properties-> Java Build Path
Including SWT.jar. But when packaging as JAR files, encounter problems, you must add Main-Class: HelloWorld and Class-Path: SWT.jar
In addition, the method of the Copy Swt.jar to the JRE / lib / EXT directory is not. Maybe my ClassPath environment variable is not set.