Output not updated enough

I added the line “myRobot.SetSafetyEnabled(false);” in the code and still the same error. I also set it to true and the same error popped up. I switched the code from C++ to Java and I would get the same error “output not updated often enough” in the deploy/run window on netbeans. Even when SetSafetyEnabled is set to true or false. I even took it completely out of the code still the same error, is there somethinig here that I am doing wrong?
here’s the code:

/* Copyright (c) FIRST 2008. All Rights Reserved.                             */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */

package edu.wpi.first.wpilibj.templates;

import com.sun.squawk.Driver;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Timer;

 * The VM is configured to automatically run this class, and to call the
 * functions corresponding to each mode, as described in the SimpleRobot
 * documentation. If you change the name of this class or the package after
 * creating this project, you must also update the manifest file in the resource
 * directory.
public class RobotTemplate extends SimpleRobot {
    RobotDrive Drive = new RobotDrive(1, 2);
    Joystick stick = new Joystick(1);

    /**robot work
     * This function is called once each time the robot enters autonomous mode.
    public void autonomous() {

     * This function is called once each time the robot enters operator control.
    public void operatorControl() {
        while(isEnabled() && isAutonomous()){


Could the delay be causing the problem?

It seems to me that your teleop loop is going to run only when you’re in both teleop and autonomous mode at the same time, and that’s definitely not what you want.

Look closely at the while statement that surrounds the operatorControl code. I think you’re missing an exclamation point before the isAutonomous() function.