Hi Jay,

You are right. The classpath did have older paths before the new one. I
exported the new classpath again (at the end of java compilation) and it
works now. It also explains why it was complaining earlier about not being
able to find SerialStub, which does not exist in tinyos-2.x (as Phil
mentioned).

Thank you all.

Kannan.
Quoting Jay Taneja <[EMAIL PROTECTED]>:

> Kannan,
>
> One problem I experienced was that I still had the $JDKROOT environment
> variable set from a previous installation. Also - make sure your
> CLASSPATH
> doesn't have two versions of Java in it - I had the newer version in the
> CLASSPATH, it just was later in the path than the older version and
> caused
> me errors.
>
> Cheers.
>
> -jay
>
> 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;."
> >
> > 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
> >
>


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

Reply via email to