The error is telling you exactly what's wrong. You are calling getDocumentBase() in player without calling it on any object or class, as if the Player class has this method itself, and the error is...