how_to_install_the_library_in_eclipse
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| how_to_install_the_library_in_eclipse [2019/08/15 19:05] – frchris | how_to_install_the_library_in_eclipse [2024/09/03 18:08] (current) – frchris | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== How to Install | + | ====== How to an Add an External Library like kareljrobot.jar in an Eclipse Project ====== |
| - Go tho the workbench, Under the '' | - Go tho the workbench, Under the '' | ||
| - | - Give the project a name (for example '' | + | - Give the project a name (for example '' |
| - In the '' | - In the '' | ||
| - In the '' | - In the '' | ||
| + | - Uncheck '' | ||
| - Press the '' | - Press the '' | ||
| - | - Now right-click the new Project and select '' | + | - Now right-click the new Project and select '' |
| - | - Click once on the left to select '' | + | - Click once on the left to select '' |
| - Click once on the third tab called '' | - Click once on the third tab called '' | ||
| - Click the second button down called '' | - Click the second button down called '' | ||
| - | - Select | + | - Place the '' |
| + | - Go back to eclipse and select the '' | ||
| - Press the '' | - Press the '' | ||
| - Press the '' | - Press the '' | ||
| - | - Make a new class '' | + | - Make a new class '' |
| <code java> | <code java> | ||
| + | import java.awt.Color; | ||
| import kareltherobot.*; | import kareltherobot.*; | ||
| - | public class RobotRunner | + | public class RCRunner |
| - | | + | |
| - | public static void main(String[] args) | + | // Main entry point |
| - | { | + | public static void main(String[] args) { |
| - | World.setDelay(150); | + | World.setDelay(10); |
| - | World.placeBeepers(4, 3, 2); | + | |
| - | World.setVisible(); | + | |
| + | | ||
| } | } | ||
| - | | + | } |
| </ | </ | ||
how_to_install_the_library_in_eclipse.1565910327.txt.gz · Last modified: 2019/08/15 19:05 by frchris