11
11chung Install Java, LeJos, and Eclipse! 1. Install RCX or Robolab software to install the drivers for your Infrared Tower. RCX v1.X only supports the serial tower. RCX 2.x supports both the serial and USB versions of the Tower (You can skip this step if you have already installed RCX or Robolab) 2. Download Java J2SE SDK from http://java.sun.com/j2se/1.4.2/download.html Install the program by running it. This may take 4-5 minutes to install. (Windows 98 users may need to use the older 1.3.x version if there errors installing the newest version) Acknowledgement: Based on web page created by Jason Chien-Tai and updated by Tim Cahoon, a robofest coach

12
12chung 3. Dowload leJOS from http://lejos.sourceforge.net/download.html (Start with Version 2.xx) 4. Extract downloaded leJOS ZIP file to a directory (eg.C:\lejos) When doing the unzip, specify unzip to C:\. The zip file will build the lejos directory for you. 5. Download eclipse from http://www.eclipse.org/downloads/index.php (With Latest Release Start with Version 2.xx) 6. Extract downloaded eclipse ZIP file to a directory (eg. C:\eclipse) When doing the unzip, specify unzip to C:\. The zip file will build the eclipse directory for you. 7. Download the following zip-bundle org.lejos_1.0.2.zip

13
13chung 8. Unzip it into your eclipse plugin directory. (The files go into c:\eclipse\plugins ) 9. Start eclipse by double-clicking eclipse.exe under C:\eclipse (Double-click again if eclipse is not started) HINT: Make a shortcut for eclipse and put it on your desktop. 10. When eclipse is running, go to the leJOS preference page, using Window->Preferences->Lejos page or Lejos- >Preferences.

14
14chung Lejos Installation Directory = C:\lejos (where you installed Lejos files) RCX comm port = com1, com1, USB (depends on how infrared tower is connected) Data Transfer Rate = fast, slow (select fast. If you have problems try slow) 8 If lejos is not listed on the bar (with file, edit, source, etc..) at the top of eclipse, the lejos plugins were not put in the right directory. ( eclipse\plugins is where the files go). Exit eclipse and redo step 8 again.

17
17chung Compile, download, and run Save the file (compile is done) Select: leJOS -> firmware download (for the first time run, takes more than 5 min) Select: leJOS -> bytecode download to download your program Press the green Run button to execute your program