This error message appears in java when the method is not defined in that class. Also another common cause of this error is forgetting the new keyword when calling the constuctor of the class.
SomeClass variable = SomeClass();
If you try to compile the above code, java will definitely throw this error message.