User Tools

Site Tools


how_to_install_the_library_in_eclipse

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
how_to_install_the_library_in_eclipse [2019/08/15 18:53] frchrishow_to_install_the_library_in_eclipse [2019/08/15 18:58] frchris
Line 6: Line 6:
   - Press the ''Finish'' button, even if you don't speak Finnish.   - Press the ''Finish'' button, even if you don't speak Finnish.
   - Now right-click the new Project and select ''Preferences'' at the bottom (or press ''Alt-Enter'')   - Now right-click the new Project and select ''Preferences'' at the bottom (or press ''Alt-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.jar'' file you downloaded earlier 
 +  - Press the ''Open'' button 
 +  - Press the ''Apply and Close'' button 
 +  - Make a new class ''RobotRunner'' to test it out: 
 +<code java> 
 +  import kareltherobot.*; 
 +  public class RobotRunner implements Directions 
 +  { 
 + public static void main(String[] args)  
 +
 + World.setDelay(150); 
 + World.placeBeepers(4, 3, 2); 
 + World.setVisible(); 
 +
 +  } 
 +</code>
how_to_install_the_library_in_eclipse.txt · Last modified: 2023/08/26 11:51 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki