0

import java.util.*; is not recognized by eclipse, shows red alert. All java API's are not recognized.

Here is what happened. java 7 got installed to my system automatically. From that incident, it is behaving like this. I have uninstalled Java 7. I don't use eclipse to build or run.

Please help.

Thanks in advance.

EDIT: this is the project setup.

enter image description here

asked Jan 17, 2012 at 12:55

1 Answer 1

1

Check your classpath in eclipse and make sure it has a reference to jre library. If not, add it.

UPDATE:

Right-click on an error. Click on Quick Fix and search for the suggestion of importing a project or library.

answered Jan 17, 2012 at 12:58
Sign up to request clarification or add additional context in comments.

5 Comments

Thanks for your answer. I have edited my question with my project setup. Even though I have jre library. I face this issue. Please help.
@Vanathi try restarting eclipse?
@Vanathi Good. Sometimes eclipse crashes and needs a restart :)
Again, it failed in few seconds :(
@Vanathi go to your jre directory (C:\program files\java\jre6 and make sure it contains all the required jars

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.