I spent a few hours trying to make the simple HelloWorld JFace application from the book "The Definitive Guide to SWT and JFace" work. Had to go through a bunch of Internet forums and trial and error in order to make it work. The secret lies in the external jars that should be added to the build path of the project in Eclipse. Without these jars I kept getting the following error when trying to launch the application:
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor
The minimum set I had to include to make the application work is the following:
- org.eclipse.swt.xxx.jar
- org.eclipse.jface.xxx.jar
- org.eclipse.core.runtime.xxx.jar
- org.eclipse.equinox.common.xxx.jar
- org.eclipse.core.commands.xxx.jar
Hoping this will prove helpful to you...
Aucun commentaire:
Enregistrer un commentaire