Installing KarelJRobot.jar Library in Blue J

  1. Make a New Project
  2. Under Tools, select Preferences
  3. Click the Libraries Tab
  4. Press the Add File button
  5. Select the kareljrobot.jar you downloaded, press the Open button
  6. It will tell you to restart the Virtual Machine, press the Okay button
  7. Under the Tools menu select Reset Java Virtual Machine (or press Ctrl-Shift-R)
  8. Make a new class RobotRunner to test it out:
  import kareltherobot.*;
  public class RobotRunner implements Directions
  {
	public static void main(String[] args) 
	{
		World.setDelay(150);
		World.placeBeepers(4, 3, 2);
		World.setVisible();
	}
  }