The java sdk support seems to have a minor bug in the file net.tinyos.message.Receiver.java on line 210 (CVS version 1.5) which prevents compilation.
I suggest the following modification (add the cast to int):
OLD: temp.listener.messageReceived(msg.get_header_dest(), received);
NEW: temp.listener.messageReceived((int) msg.get_header_dest(), received);
In addition, I'd suggest to use ant for the compilation (the current build.xml file in the CVS calls make). Please find attached a version of the build.xml file I'd be happy with.
BR,
Roland
<?xml version='1.0'?>
<!-- ANT file for the TOS sdk java support -->
<!-- The created .class files are placed in a directory 'bin/' in -->
<!-- the current folder. -->
<project name="tinyos" default="jar" basedir=".">
<!-- Create the tinyos.jar file -->
<target name="jar" depends="compile">
<delete file="tinyos.jar"/>
<jar destfile="tinyos.jar" basedir="bin" includes=""/>
</target>
<!-- Compile -->
<target name="compile">
<mkdir dir="bin/"/>
<delete file="tinyos.jar"/>
<javac
srcdir="."
destdir="bin"
target="1.4"
debug="on"
debuglevel="lines,vars,source"
source="1.4"
/>
</target>
<!-- Force recompilation -->
<target name="clean">
<delete file="tinyos.jar"/>
<delete dir="bin"/>
</target>
</project>