CS 444 - Week 4 Lecture 2 - 2015-02-12
NOTE!
* you can STOP a program running on the NXT brick
by pushing the Enter and Escape buttons
(the orange and the small dark gray rectangular buttons)
on its front...
* then, walking through a non-application-class Java class,
GameDie, which uses Java from the subset included in leJOS --
so it CAN be used in a leJOS application class such as TryDie:
* make sure BOTH classes are in the SAME directory (put GameDie.java
and TryDie.java in the same directory)
* compile both classes GameDie.java and TryDie.java using
nxjc:
nxjc GameDie.java
nxjc TryDie.java
* when you nxjlink application class TryDie, it LOOKS
in its path AND in the current directory for non-application
classes it uses and needs to include in the linked
result to be uploaded to the NXT brick.
SO -- you ONLY refer to the application class in the
nxjlink command:
nxjlink -o TryDie.nxj TryDie
* ...and you just upload the linked nxj file resulting,
TryDie.nxj, to the NXT brick:
nxjupload -r TryDie.nxj