2006-09-10

Eclipse SWT/JFace 3.2.0 jars/libraries required for standalone (JFace) applications

There are some vague references at Eclipse Bugzilla and Eclipse Porting Notes to the list of dependencies required to run a standalone SWT/JFace application. After generating a skeleton JFace plugin application (as suggested at Manning's Sandbox), I found the following files needed to be added to a project to be able to run standalone (using Maven2 local installs in current project):

org.eclipse.core.runtime_3.2.0.v20060603.jar
org.eclipse.swt.win32.win32.x86_3.2.0.v3232m.jar
org.eclipse.jface_3.2.0.I20060605-1400.jar
org.eclipse.equinox.common_3.2.0.v20060603.jar
org.eclipse.equinox.registry_3.2.0.v20060601.jar
org.eclipse.equinox.preferences_3.2.0.v20060601.jar
/* org.eclipse.jface.text_3.2.0.v20060605-1400.jar */
org.eclipse.swt_3.2.0.v3232o.jar
org.eclipse.core.jobs_3.2.0.v20060603.jar
org.eclipse.core.contenttype_3.2.0.v20060603.jar
org.eclipse.core.commands_3.2.0.I20060605-1400.jar

(replace detailed version numbers with earlier/later numbers accordingly)

When incorrect libraries are specified, when running, Eclipse simply displays:

"Could not find the main class"

with no additional information available on what exact dependencies are missing (??).

Hopefully Maven2 soon be updated with these libraries (including the proper dependencies between them ...)

1 comment:

Alex Jonk said...

Thanks for this very useful blog. I've been looking for over 2 days to find this, and I'm glad I did. I still needed to extend the swt project as described here http://www.eclipse.org/swt/eclipse.php