What is "MyTimerTask" - has it been compiled successfully, or is otherwise available on the classpath?
Also, assuming you didn't just omit that for posting - you need to get into the habit of putting all your classes in packages. You will run into problems sooner or later if you don't.