Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » The import org.eclipse cannot be resolved(im trying to use swt to create windows / dialogs. and i get the mentioned error.)
The import org.eclipse cannot be resolved [message #1826688] Wed, 29 April 2020 01:16 Go to next message
Aaron Long is currently offline Aaron LongFriend
Messages: 1
Registered: April 2020
Junior Member
Fresh install of eclipce and openjdk 11 with hotspot,

created a new proejct, java references seem to be fine. but anything requiring org.eclipse cannot be resolved.

any help would be appreciated. :(
Re: The import org.eclipse cannot be resolved [message #1826728 is a reply to message #1826688] Wed, 29 April 2020 14:50 Go to previous messageGo to next message
Emmanuel Chebbi is currently offline Emmanuel ChebbiFriend
Messages: 123
Registered: February 2018
Senior Member
Are dependencies to SWT properly setup in your project?

[Updated on: Wed, 29 April 2020 14:51]

Report message to a moderator

Re: The import org.eclipse cannot be resolved [message #1826731 is a reply to message #1826728] Wed, 29 April 2020 15:14 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Have you restarted Eclipse and cleaned and rebuilt everything.?

Have you checked the target definition? The new PDE *.target editor tooling makes it really easy to trash the target definition and thereafter all sorts of magic stupid errors happen.

Regards

Ed Willink
Re: The import org.eclipse cannot be resolved [message #1826784 is a reply to message #1826731] Thu, 30 April 2020 12:36 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
@Aaron, for a systematic analysis it might help, if first you describe to us, by which means JDT should resolve those references? We don't even know if your's is a plug-in project or a plain Java project. Are the desired plug-ins correctly showing as dependencies (in the Java Build Path dialog and/or the Package Explorer) etc. pp.

Before we know these things we can only provide hints of the style of cargo cult ;p (i.e., actions that empirically have solved problems in the past, without knowing their root cause).
Previous Topic:Is Project Explorer completely broken?
Next Topic:How to change default generic type from E to T
Goto Forum:
  


Current Time: Sat Apr 20 00:27:25 GMT 2024

Powered by FUDForum. Page generated in 0.03072 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top