Solved

Cannot be resolved to a type

Posted on 2010-08-19
4
939 Views
Last Modified: 2013-12-14
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
Comment
Question by:allelopath
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 167 total points
ID: 33478729
Probably an incorrect runtime installation. Try making sure JAVA_HOME is set before starting Eclipse
0
 
LVL 10

Assisted Solution

by:Hegemon
Hegemon earned 166 total points
ID: 33479520
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
 
LVL 92

Assisted Solution

by:objects
objects earned 167 total points
ID: 33480972
goto jre's in the preferences and make sure you are using the correct one
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 33559970
:-)
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
diffSum example 4 53
jboss 7.1 start up error 1 41
Why doesn't this text field show up on my Applet frame? 2 20
Where are the c++ header files to use in Eclipse? 4 25
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question