Reputation: 12718
I opened up Eclipse after some time to check code for an old project. Each of my projects now have a red exclamation mark and getting error such as unresolveable and unknown data types for those imported libraries (ex: Timer, Queue, etc).
I haven't touched Eclipse in months, so I'm not sure what happened.
Upvotes: 1
Views: 1265
Reputation:
Click on properties on your project context menu:
Find out which library is missing:
You can update the library's location by double-clicking on it.
Upvotes: 1
Reputation: 72864
java.util.Timer
is part of the JRE library. If Eclipse is unable to find it, this means that the JRE system library is not being found by Eclipse.
You can view the dependency on the JRE library by right-clicking on the project and choosing Properties -> Java Build Path. In the Libraries tab there should be an entry for the JRE system library. Make sure that this is pointing to a valid JRE on your system.
If the JRE is marked unbound, check that a JRE1.6 is installed in the preferences under Window -> Preferences -> Java -> Installed JREs.
Upvotes: 1
Reputation: 4638
That means Eclipse cannot find the .jar files that those libraries were inside, and now have no idea where to import them from.
To fix:
Upvotes: 2