how_to_install_the_library_in_bluej
This is an old revision of the document!
Installing KarelJRobot.jar Library in Blue J
- Make a New Project
- Under
Tools, selectPreferences - Click the
LibrariesTab - Press the
Add Filebutton - Select the
kareljrobot.jaryou downloaded, press theOpenbutton - It will tell you to restart the Virtual Machine, press the
Okaybutton - Under the
Toolsmenu selectReset Java Virtual Machine(or press Ctrl-Shift-R) - Make a new class
RobotRunnerto 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();
}
}
how_to_install_the_library_in_bluej.1565907962.txt.gz · Last modified: 2019/08/15 18:26 by frchris