Prev | Home | Next

Using the LeJOS MindStorms Integration

LeJOS is an Open Source, Java-based operating system you can download onto the LEGO® MindStorms RCX brick. Once this is done you can program the RCX in Java rather than in the limited RCX visual language that comes standard with MindStorms.

This documentation does not attempt to teach you how to program the RCX with LeJOS. Please visit the LeJOS Home for instructions and tutorials. We will assume you have downloaded the LeJOS development system to somewhere on your file system and installed the new LeJOS operating system onto the RCX brick.

Enabling LeJOS development:
Choose the Preferences... menu command to display Jurtle's preference panel. Click on the LeJOS tab and then:

  1. Check the Enable Lejos item.
  2. Enter the directory path to where you placed the downloaded LeJOS directory. On Mac OS X the path might look like: /Users/fred/lejos_2_1_0
  3. From the Tower port popup, choose the port you have plugged your Mindstorms tower into.
  4. Close the Preferences panel.

You should now see a Use LeJOS checkbox at the upper right of the main Jurtle window. Whenever this box is checked, The Compile command and the Run command will work slightly differently.

  • The Compile command will invoke the special "lejosc" compiler rather than the standard "javac" compiler.
  • The Run command will not actually run the code, rather, it will download the compiled code to the RCX brick. After downloading you will still need to run the program on the RCX in the normal way as detailed in the MindStorms documentation.

 

 

 

Getting Started

Concepts

   Turtles

   Working with
   Directories

   Class List

   Drag and Drop onto
   the Class List

   Edit Tab

   Display Tab

   Errors Tab

  LeJOS MindStorms

Reference