[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 945
  • Last Modified:

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?
0
allelopath
Asked:
allelopath
  • 2
3 Solutions
 
CEHJCommented:
Probably an incorrect runtime installation. Try making sure JAVA_HOME is set before starting Eclipse
0
 
HegemonCommented:
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.
0
 
objectsCommented:
goto jre's in the preferences and make sure you are using the correct one
0
 
CEHJCommented:
:-)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now