The compiler messages are actually very helpful. If it says "I can't find a method" (as in this case), I always try to find the method myself. I cut-n-paste the EXACT method name it says it can't find. I turn on "match by case" since java is case sensitive, and then I search for the method. If I can't find it, the compiler probably can't either.
If I CAN find it, then I start digging deeper. Is the method signature correct/match? are the access modifiers correct? Did I include the correct CLASSPATH, etc.