What is leJOS?

leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny (~ 16 Kb) Java-based operating system that has been ported to the following platforms: leJOS has been forked out of the TinyVM project.
it contains a VM for Java bytecodes and additional software to load and run Java programs. These are some of the features offered: The features above are also provided by TinyVM. But in addition to these, leJOS also offers TinyVM is still around simply as a low-footprint alternative to leJOS. TinyVM is about 7 Kb smaller in the RCX.

Preliminaries

Compatibility


RIS 1.0 RIS 1.5 RIS 2.0
RCX 1.0/2.0 + + +
Serial IR Tower + + -
USB IR Tower - - +

Installation and Set Up

Please download the leJOS documentation from the same location you downloaded this distribution from and consult the "First Steps" section of the Tutorial contained there.
  1. Set your environment variable LEJOS_HOME to the directory you installed this distribution into
  2. Set your environment variable RCXTTY to usb (for USB towers) or COM1 (for serial towers); on Linux, for USB towers RCXTTY is required to be set to the tower device depending on your particular configuration (e.g. /dev/usb/legousbtower0 or /dev/usb/legousbtower0)
  3. On Linux, depending on the privilege settings you might need to adjust the execution permissions in the bin folder
On Linux, you will have to build the distribution first. To do so, switch to the build folder and run ant.
Note that depending on the privilege settings you might need to adjust the the execution permissions in the release folder.

Download the firmware to the RCX with firmdl.

Check the installation by switching to the "check" folder of the leJOS distribution and run checkDistribution.bat resp. checkDistributionCheck.sh.
A very simple test program will be downloaded to the RCX. After the download has finished, press the RCX's 'RUN' button. The RCX's LCD should print the strings "SMOKE" and "TEST".

Known limitations

Due to size constraints, some Java language features have been omitted. Others just haven't been implemented yet. Known limitations are:

Known Bugs

Documentation

Please download the leJOS documentation from the same location you downloaded this distribution from. The documentation contains the API docs and the tutorial. Online versions may be retrieved from http://lejos.sourceforge.net/.

License

We are releasing under the Mozilla Public License (see the LICENSE file) for now, since Kekoa Proudfoot's librcx is under that same license, and leJOS is linked against -lrcx and -lfloat, which are part of librcx. No changes have been made to those libraries, so they haven't been redistributed. They are only needed if you are planning to modify the native C source code. See docs/hacking.

Questions and Problems

Please direct feedback to the lejos-discussion mailing list mailto:lejos-discussion@lists.sourceforge.net.
To subscribe, see
http://lists.sourceforge.net/lists/listinfo/lejos-discussion.

Feel free to take a look at the Lejos website or its project page.