Wizards - SWT/JFace Java Project

In order to use Eclipse SWT and JFace components, you need to make sure that all of the appropriate SWT and JFace jar files are on your classpath. The SWT/JFace Java Project wizard creates a standard Java project which has all of the needed libraries added.

 

The list of libraries that is added depends upon the version of Eclipse that you are using:

Eclipse 3.0 and above

  • org.eclipse.osgi -- osgi.jar
  • org.eclipse.ui.forms -- forms.jar;
  • org.eclipse.core.runtime -- runtime.jar
  • org.eclipse.jface -- jface.jar
  • org.eclipse.jface.text -- jfacetext.jar
  • org.eclipse.ui.workbench -- workbench.jar
  • org.eclipse.swt -- swt.jar

Eclipse 2.1

  • org.eclipse.core.boot -- boot.jar
  • org.eclipse.core.runtime -- runtime.jar
  • org.eclipse.jface -- jface.jar
  • org.eclipse.jface.text -- jfacetext.jar
  • org.eclipse.ui.workbench -- workbench.jar
  • org.eclipse.swt -- swt.jar

Note that, if there are specific libraries that you don't plan to use (Eclipse Forms, for example), you may remove the associate jar files from your classpath.