• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error??

 
Suka Hati
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got an error, cannor resolve symbol. what could it be?hoe to solve the error
 
C. Alan
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a couple of reasons for getting this error. Without seeing your code, it is a little difficult to say exactly why you are having a problem.

Unless installed as a package and properly imported, files for classes used in the program (in this case EasyReader.java or EasyReader.class) should be available in the same folder as Hello.java. A cannot resolve class error may also show up when a library class is not imported or when data type is incorrect or misspelled.


This error may occur when a method is called incorrectly: either its name is misspelled (or upper-lower case is misplaced), or a method is called with wrong types of arguments, or a method is called for a wrong type of object or a wrong class.


A very common error, cannot resolve symbol may result from an undeclared variable or a misspelled local variable or field name, or missing parentheses in a method call.


Taken from here:
http://www.skylit.com/javamethods/appxf.html#symbolclass
 
Suka Hati
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think the error occured because im using package.all of the class is in the package. each class is connected with each other. i made some changing in one of the class(eg class A). i copy it and put it back in the package. then i modify another class(eg class B) that call the previous class(class A). the error, cannot resolve symbol was at the line in class B that call method of class A. does this make sense???
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic