![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | README.html | 2002-03-19 22:14 | 2.0K | |
![]() | SaJeBuild/ | 2014-07-21 05:47 | - | |
![]() | SerialHello.java | 2002-04-29 23:51 | 938 | |
![]() | SerialHelloExample.ajp | 2002-04-27 21:31 | 435 | |
![]() | build.ajp | 2002-03-19 22:14 | 749 | |
![]() | build.bin | 2002-04-07 16:46 | 94K | |
![]() | build/ | 2014-07-21 05:46 | - | |
![]() | compile.bat | 2002-04-07 15:47 | 144 | |
![]() | doc/ | 2002-03-19 22:14 | - | |
![]() | fromkit/ | 2014-07-21 05:47 | - | |
![]() | j2me/ | 2014-07-21 05:47 | - | |
This example demonstrates how the System.out stream may be directed to a serial port on an aJile board without changing the Java source program.
Use JemBuilder to open the project (.AJP) file and open the JVM0|Drivers subtree. Click on the COM1 branch to see the checkbox which ensures that System.out is sent to the aJile serial port.
Open a terminal emulation program like Hyperterminal or Tera Term; configure the terminal program to 9600 baud, no parity, 8 data bits, 1 stop bit. Also make sure that "local echo" is disabled and that the terminal emulator is not using "hardware" flow control. If you are using Hyperterminal you will have to disconnect and reconnect after changing any configuration options.
To execute the program on the aJile hardware, click on the Run or Go
button. You should see the message "Hello, World!" appear within the terminal
emulator window, followed by several lines of output containing selected
CLDC system property values, then "Goodbye, World!"