Make a New Project
Under
Tools
, select
Preferences
Click the Libraries
Tab
Press the
Add File
button
Select the kareljrobot.jar
you downloaded, press the Open
button
It will tell you to restart the Virtual Machine, press the Okay
button
Under the
Tools
menu select
Reset Java Virtual Machine
(or press
Ctrl-Shift-R)
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();
}
}