Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is ISafeRunnable?

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!!!!

like image 649
Mostafa Zeinali Avatar asked Jul 08 '12 12:07

Mostafa Zeinali


1 Answers

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.

like image 128
raina77ow Avatar answered Sep 28 '22 08:09

raina77ow