aspose file tools*
The moose likes Beginning Java and the fly likes error?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "error??" Watch "error??" New topic
Author

error??

Suka Hati
Ranch Hand

Joined: Oct 28, 2004
Posts: 56
i got an error, cannor resolve symbol. what could it be?hoe to solve the error
C. Alan
Ranch Hand

Joined: Dec 17, 2004
Posts: 30
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


<a href="http://www.security-forums.com/forum/viewforum.php?f=48" target="_blank" rel="nofollow">Malware Removal</a> - Get your system running like new again.
Suka Hati
Ranch Hand

Joined: Oct 28, 2004
Posts: 56
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???
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: error??