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 - Give the project a name (for example
Karel at SFHS) - 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 left to select
Java Build Path - 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.1565909929.txt.gz · Last modified: 2019/08/15 18:58 by frchris