Could you please tell me how to resolve that package import, I thought it is an element of SWT and I've already have SWT installed into Eclipse IDE. Why is it so bothersome? I guess I have to download some *.jar or *.zip files to add to my project as external library.
Please give me a solution. Thank you!
VipHaLong.
No, org.eclipse.ui
is definitely not part of SWT (or vice versa, but it requires SWT). If you are creating an RCP plugin (if not, you probably shouldn't be using org.eclipse.ui
), you need to open plugin.xml
file, "Dependencies" tab, and add org.eclipse.ui
to "Required plugins".
Download SWT library. For 3.1.2 version of eclipse, SWT library is available at http://archive.eclipse.org/eclipse/downloads/drops/R-3.1.2-200601181600/index.php Look for the section titled SWT Binary and Source.
Then follow this link: http://www.mkyong.com/swt/how-to-import-swt-library-into-eclipse-workspace/
follow it step by step and mostly you will get the solution. I was stuck with the same problem .
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