User Tools

Site Tools


how_to_install_the_library_in_bluej

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
how_to_install_the_library_in_bluej [2019/08/15 18:04] frchrishow_to_install_the_library_in_bluej [2019/08/16 20:17] (current) frchris
Line 1: Line 1:
 ====== Installing KarelJRobot.jar Library in Blue J ====== ====== Installing KarelJRobot.jar Library in Blue J ======
   - Make a New Project   - Make a New Project
-  - Under ''Tools'', select ''Preferences''+  - Under ''Tools'', select ''Preferences'' {{::tools.png?300|}}
   - Click the ''Libraries'' Tab   - Click the ''Libraries'' Tab
-  - Press the ''Add File'' button+  - Press the ''Add File'' button {{::librry.png}}
   - Select the ''kareljrobot.jar'' you downloaded, press the ''Open'' button   - Select the ''kareljrobot.jar'' you downloaded, press the ''Open'' button
   - It will tell you to restart the Virtual Machine, press the ''Okay'' button   - It will tell you to restart the Virtual Machine, press the ''Okay'' button
-  - +  - Under the ''Tools'' menu select ''Reset Java Virtual Machine'' (or press **Ctrl-Shift-R**){{::reset.png?400|}} 
 +  - 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_bluej.1565906677.txt.gz · Last modified: 2019/08/15 18:04 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki