]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - doc/html/tutorial/lesson4.html
Merge over into the trunk.
[tinyos-2.x.git] / doc / html / tutorial / lesson4.html
index 977b9a1ae953e7ce6fafec7b73fc79ed93f0a255..f2cca6db616a5ee4b53edc2a0233dd5655594333 100644 (file)
@@ -480,7 +480,23 @@ it matches the AM type of one of the Java message classes
 passed at the command line, it prints out the packet. You
 should see output like this:</p>
 
-<pre></pre>
+<pre>
+1152232617609: Message <BlinkToRadioMsg>
+  [nodeid=0x2]
+  [counter=0x1049]
+
+1152232617609: Message <BlinkToRadioMsg>
+  [nodeid=0x2]
+  [counter=0x104a]
+
+1152232617609: Message <BlinkToRadioMsg>
+  [nodeid=0x2]
+  [counter=0x104b]
+
+1152232617621: Message <BlinkToRadioMsg>
+  [nodeid=0x2]
+  [counter=0x104c]
+</pre>
 
 <h1>SerialForwarder and other packet sources</h1>
 
@@ -710,6 +726,16 @@ rather than the radio stack.</p>
  href="index.html">Top</a></b> &nbsp;|&nbsp; <b><a href="lesson5.html">Next Lesson </a>&nbsp;&gt;</b>
 </center>
 
+                       
+<h1>CLASSPATH and Java classes</h1>
+                       
+<p>Note that the CLASSPATH variable points to <tt>tinyos.jar</tt>. This
+means that when Java looks for classes to load, it looks in tinyos.jar rather
+than the Java directories in <tt>support/sdk/java</tt>. Therefore,
+if you change and recompile the Java classes, you will not see the changes,
+as Java will only look at the jar file. To regenerate the
+jar from the Java code, go to <tt>support/sdk/java</tt> and type
+<tt>make tinyos.jar</tt>.
 </body>
 </html>