The call to the timer.start() is not within a defined program element. If you want to start the timer upon construction, place it within the constructor. If you want to start it based upon a method...