On 8/18/06, Kannan Srinivasan <[EMAIL PROTECTED]> wrote:
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;."

If you want to recompile the java code, you should point your class
path at the source code directory ($TOSROOT/support/sdk/java/), not
the compiled version of the source code
($TOSROOT/support/sdk/java/tinyos.jar)

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

Reply via email to