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
File
menu, selectNew Java Project
- In the
JRE
area, selectuse an execution environment JRE J2SE-1.5
- In the
Project Layout
area, selectUse project folder as root for sources and class files
- Press the
Finish
button, even if you don't speak Finnish. - Now right-click the new Project and select
Preferences
at 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.jar
file you downloaded earlier - Press the
Open
button - Press the
Apply and Close
button - 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(); } }
how_to_install_the_library_in_eclipse.1565910462.txt.gz · Last modified: 2019/08/15 19:07 by frchris