Quoting Philip Levis <[EMAIL PROTECTED]>:

> On Aug 18, 2006, at 12:14 AM, Kannan Srinivasan wrote:
>
> >
> > I went ahead and compiled java code in the apps directory. It is
> > giving me
> > the following error (eg. compiling java code under Oscilloscope):
> >
> > $ javac Oscilloscope.java
> > Oscilloscope.java:55: cannot access net.tinyos.util.SerialStub
> > file net\tinyos\util\SerialStub.class not found
> >         mote = new MoteIF(PrintStreamMessenger.err);
> >                ^
> > 1 error
>
> Your CLASSPATH is pointing at the 1.x Java code.

My Classpath is set as follows and is pointing to tinyos-2.x java code:

TOSROOT="/opt/tinyos-2.x"
export TOSROOT
TOSDIR="$TOSROOT/tos"
export TOSDIR
export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar`
export CLASSPATH="$CLASSPATH;."

type java >/dev/null 2>/dev/null || PATH=`/bin/tos-locate-jre --java`:$PATH
type javac >/dev/null 2>/dev/null || PATH=`/bin/tos-locate-jre
--javac`:$PATH
echo $PATH | grep -q /bin || PATH=/bin:$PATH

Kannan.
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to