Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

org.eclipse.ui can't be resolved?

Tags:

java

swt

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.

like image 710
King King Avatar asked Sep 06 '25 09:09

King King


2 Answers

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".

like image 131
Alexey Romanov Avatar answered Sep 09 '25 05:09

Alexey Romanov


  1. 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.

  2. 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 .

like image 40
SRB Avatar answered Sep 09 '25 05:09

SRB