I am a new user of both Linux and Tinyos,also. I’ve read the address on
Tinyos-help.

(http://www.mail-archive.com/[email protected]/msg24205.ht
ml)

But I follow the answer to do that it also have problem on tinyos when I
type

“motecom=ser...@com15:telos java net.tinyos.tools.Listen”.

 

It show:

Exception in thread "main" java.lang.NoClassDefFoundError:
net/tinyos/tools/Listen

 

 

I’m in cygwin and tinyos-2.x user.

1.

echo $CLASSPATH

it show:

/opt/tinyos-2.x/support/sdk/java/tinyos.jar:.

 

2.my tinyos.sh

 

# script for profile.d for bash shells, adjusted for each users

# installation by substituting /opt for the actual tinyos tree

# installation point. 

export TOSROOT="/opt/tinyos-2.x"

export TOSDIR="$TOSROOT/tos"

export
CLASSPATH="C:\tinyos\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar" 

export CLASSPATH="$CLASSPATH;."

export MAKERULES="$TOSROOT/support/make/Makerules"

export PATH="/opt/msp430/bin:$PATH"

export PATH="/cygdrive/c/Program Files/Java/jdk1.5.0/bin:$PATH"

 

# Extend path for java

type java >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre --java`:
$PATH

type javac >/dev/null 2>/dev/null || PATH=`/usr/local/bin/locate-jre
--javac`:$PATH

echo $PATH | grep -q /usr/local/bin || PATH=/usr/local/bin:$PATH

 

 

how can I set on it?

 

 

 

Jerry

 

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to