I seem to remember something about needing to initialize things in the same order they were defined. This is just a guess, but have you tried moving the
Code:
myRobot = new RobotDrive(leftmotor, rightmotor);
line to the very beginning of
Drive:
rive()?