Skip to main content

Use of LeJosRT

Remote debugging

Posted in

This tutorial results from the official leJos web site.

 

You can use your PC as a remote console to display tracing statements generated your NXJ program. The lejos.nxt.comm.RConsole class has methods to it. Since there are no instances of this class, all methods are static.

Compiling and running programs

Posted in

This tutorial results from the official leJos web site.


 

Writing your first program

Posted in

This tutorial results from the official leJos web site.

Let us start with a simple “Hello World” program. We will create a HelloWorld class in the default java package:

  1. public class HelloWorld
  2. {
  3. }

leJosRT requires the standard main method for the program entry point:

  1. public class HelloWorld {
  2. public static void main (String[] args) {
  3. }
  4. }
Syndicate content