Follow Us
Contribute
  • Register
Errorbase is a collaborative writing project, that aims to build the largest trouble-shooting guide about all kinds of error messages.

Categories

+2 votes

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.

requested by (170k points)
edited by

1 Solution

+1 vote

Check the method in the error message if it is defined or not. Also do not forget to add the new keyword for the constructors.
SomeClass variable = new SomeClass();

solved by (170k points)
edited by
...