Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Java in General and the fly likes NoSuchMethodError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "NoSuchMethodError" Watch "NoSuchMethodError" New topic
Author

NoSuchMethodError

peter greaves
Ranch Hand

Joined: Sep 27, 2002
Posts: 51
grrr... cost me an hour staring at this before i realised that the method was the constructor...i was doing something like this:

and kept getting NoSuchMethodError at runtime. was looking at all sorts of reasons in method calls. but the problem was occuring because i had not declared a no-args constructor!! the "method" that was not there was the constructor ().
a painful lesson
peter


SJCP 1.2
 
wood burning stoves
 
subject: NoSuchMethodError