how_to_install_the_library_in_eclipse
This is an old revision of the document!
How to Install kareljrobot.jar in an Eclipse Project
- Go tho the workbench, Under the
Filemenu, selectNew Java Project - In the
JREarea, selectuse an execution environment JRE J2SE-1.5 - In the
Project Layoutarea, selectUse project folder as root for sources and class files - Press the
Finishbutton, even if you don't speak Finnish. - Now right-click the new Project and select
Preferencesat the bottom (or pressAlt-Enter) - Click once on the third tab called
Libraries - Click the second button down called
Add External JARs - Select the
KarelJRobot.jarfile you downloaded earlier - Press the
Openbutton - Press the
Apply and Closebutton - 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_eclipse.1565910462.txt.gz · Last modified: 2019/08/15 19:07 by frchris

