I have downloaded a code that was written on the Eclipse platform, and I want to compile it, but one of the jar
files that I include, uses a class called ISafeRunnable
, and the class's canonical name is:
org.eclipse.core.runtime.ISafeRunnable
. But no matter how many jar files starting with org.eclipse.core.runtime
I add to my build path, none of them contains ISafeRunnable
!!! Help Please!!!!
Would it help if you import org.eclipse.equinox.common
as well? Check this thread, for example:
The ISafeRunnable interface is located in the equinox plugin (org.eclipse.equinox.common). If you add the SWT library to your project, it should be added to the build path automatically. You can do this by right-clicking your project, choosing Build Path/Add Libraries... and then selecting the SWT Library. Afterwards, your project should contain a new folder, having the same icon as the JRE folder, and containing a couple of jars, including org.eclipse.swt... and org.eclipse.equinox.common.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With