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 - Uncheck
create module-info java file. - Press theFinishbutton, even if you don't speak Finnish. - Now right-click the new Project and selectPreferencesat the bottom (or pressAlt-Enteror pressCommand-Ion a mac orControl-Ion Windows) - Click once on the left to selectJava Build PathLibraries
- Click once on the third tab called - Click the second button down calledAdd External JARs- Place theKarelJRobot.jarfile you downloaded earlier into your new project folder (Do this usingFinderin Mac orFileson Windows) - Go back to eclipse and select theKarelJRobot.jarfile you just dropped into the project folder. - Press theOpenbutton - Press theApply and Closebutton - Make a new classRobotRunnerto test it out: From the File menu, selectNew → Class(or press theC+button. ) and name classRobotRunner''. Paste the follwing code:
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.1693063889.txt.gz · Last modified: 2023/08/26 11:31 by frchris
