Cannot be resolved to a type

We've installed eclipse and JRE (both 64 bit) on a 64 bit machine running WIndows Vista and are getting errors saying the claases like File, FileReader, and String cannot be resolved to a type.

Any guesses as to what is wrong?
Who is Participating?
CEHJConnect With a Mentor Commented:
Probably an incorrect runtime installation. Try making sure JAVA_HOME is set before starting Eclipse
HegemonConnect With a Mentor Commented:
Incorrect setup: more than one JRE is being used, i.e. one by the IDE and another by the compiler. Make sure you follow Eclipse installation instructions.
objectsConnect With a Mentor Commented:
goto jre's in the preferences and make sure you are using the correct one
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.