The .java files here are ones written for LeJOS the Lego Java Operating System. LeJOS comes with classes that operate on the Lego RCX programmable brick, including ones to run the motors, beep the beeper, examine the sensors, etc. The josx/platform/rcs directory here contains some dummy versions of these classes, just so that the routines here can be compiled under Java. The dummy versions mostly just print to standard output what the real ones would be doing, i.e. "Motor A is turning forward.". To compile and run JimsRobot.java and RunJimsRoboto.java, under Java, here on akbar, I typed the following at the command line. javac JimsRobot.java javac RunJimsRobot.java java RunJimsRobot To run this on one of a Lego robot, (0) Build a robot that has runs two motors, attached to the A and B connections, one on each side of the brick. (Depending on how left and right connect to A and B, and which way you make the connections, your robot may not move or turn in the same direction as mine. Experiment.) (1) Download JimsRobot.java and RunJimsRobot.java to one of the PC's that has LeJOS installed, with an IR tower connected to it. (2) Compile the programs from the command line with lejosc JimsRobot.java lejosc RunJimsRobot.java (3) Turn on the lego brick, and put it near the tower. If the LeJOS firmware isn't already on the brick, put it on by typing "lejosfirmdl" at the command prompt. (4) Download the program into the brick by typing lejos JimsRobot (5) Push the "Run" button on the brick to see the robot do its thing.