Simple Emulation package for FIRST Robotics Java code running on a cRio Add your robot code to the package RobotCode (be sure to change the package declaration).
package RobotCode;
Also, replace the wpilibj imports with
import robotemulator.*;
When you run the emulator it will give you a choice to run teleop or autonomous, input your choice and hit enter.