ah, sorry...

first, you are on Linux right? Does /opt actually exist in the
file system? If on Widows, cygwin does some fast and loose linking
that makes /opt not appear to Java, so you need to use the full
C:./yada/yada path...

second, you probably want to have '.' in the CP or you will eventually
get really confused.

third, unless you have a build with all the class files under sdk/java
(which I don't see in your ls), you probably want to use the tinyos.jar

CLASSPATH=.:$TOSROOT/support/sdk/java/tinyos.jar

have a go at that...
MS


David Guillen Jimenez wrote:
> The CLASSPATH is at the end of this mail defined as I red in the manual:
> 
>  export TOSROOT=
>  export TOSDIR=
>  export MAKERULES=
>  TOSROOT="/opt/tinyos-2.1.0"
>  TOSDIR="$TOSROOT/tos"
>  CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java
>  MAKERULES="$TOSROOT/support/make/Makerules"
>  export TOSROOT
>  export TOSDIR
>  export CLASSPATH
>  export MAKERULES
> 
> There are 3 Warnings:
> 
> 1. WARNING: CLASSPATH may not include
>>> /opt/tinyos-2.1.0/support/sdk/java/tinyos.jar. Please ensure that 
>>> /opt/tinyos-2.1.0/support/sdk/java/tinyos.jar is in your CLASSPATH or you 
>>> may experience configuration problems
> 
> But it is there as I showed in the ls -la:
> $ ls -la /opt/tinyos-2.1.0/support/sdk/java/
>>> total 256
>>>
>>> drwxr-xr-x 3 david david 4096 2009-08-31 18:23 .
>>>
>>> drwxr-xr-x 6 david david 4096 2009-08-31 18:23 ..
>>>
>>> -rw-r--r-- 1 david david 565 2007-08-15 20:06 build.xml
>>>
>>> -rw-r--r-- 1 david david 432 2007-08-31 00:29 Makefile
>>>
>>> -rw-r--r-- 1 david david 2750 2006-07-12 18:59 Makefile.include
>>>
>>> drwxr-xr-x 3 david david 4096 2009-08-31 18:23 net
>>>
>>> -rw-r--r-- 1 david david 230272 2008-08-06 18:31 tinyos.jar
> 
> 
> 
> 2. WARNING: CLASSPATH may not include '.' (that is, the symbol for the
>>> current working directory). Please add '.' to your CLASSPATH or you may 
>>> experience configuration problems.
> Is it possible I am missing a '.'? Because I am not completely sure. I tried 
> to put it at the beginning but there´s no difference (TestSerial does not 
> work and the rest work):
> CLASSPATH=.$CLASSPATH:$TOSROOT/support/sdk/java
> 
> 
> 3. WARNING: The graphviz (dot) version found by tos-check-env is not 1.10.
>>> Please update your graphviz version if you'd like to use the nescdoc 
>>> documentation generator.
> 
> dot - Graphviz version 2.18 (Wed Aug 6 10:29:47 UTC 2008)
> 
> I am using a more modern version, could it be a problem?
> 
> 
> -
> -
> -
> 
> 
>> If you do have a CLASSPATH environment variable
>> make sure you have followed the instructions in the error
>> messages you included here, and also that the directories
>> and files that it references are indeed the correct ones.
>> MS
>>
>>
>> David Guillen Jimenez wrote:
>>> Hi,
>>>
>>> I am going ot leave you here some additional information, in case you 
>>> could identify the problem easly.
>>>
>>> If a execute: tos-check-env :
>>>
>>> Path:
>>>
>>> /usr/local/sbin
>>>
>>> /usr/local/bin
>>>
>>> /usr/sbin
>>>
>>> /usr/bin
>>>
>>> /sbin
>>>
>>> /bin
>>>
>>> /usr/games
>>>
>>> Classpath:
>>>
>>>
>>> /opt/tinyos-2.1.0/support/sdk/java
>>>
>>> --> WARNING: CLASSPATH may not include 
>>> /opt/tinyos-2.1.0/support/sdk/java/tinyos.jar. Please ensure that 
>>> /opt/tinyos-2.1.0/support/sdk/java/tinyos.jar is in your CLASSPATH or you 
>>> may experience configuration problems
>>>
>>> --> WARNING: CLASSPATH may not include '.' (that is, the symbol for the 
>>> current working directory). Please add '.' to your CLASSPATH or you may 
>>> experience configuration problems.
>>>
>>>  
>>>
>>> rpms:
>>>
>>>  
>>>
>>> nesc:
>>>
>>> /usr/bin/nescc
>>>
>>> Version: nescc: 1.3.0
>>>
>>>  
>>>
>>> perl:
>>>
>>> /usr/bin/perl
>>>
>>> Version: v5.10.0 built for i486-linux-gnu-thread-multi
>>>
>>> flex:
>>>
>>> bison:
>>>
>>> java:
>>>
>>> /usr/bin/java
>>>
>>> java version "1.5.0_16"
>>>
>>> graphviz:
>>>
>>> /usr/bin/dot
>>>
>>> dot - Graphviz version 2.18 (Wed Aug 6 10:29:47 UTC 2008)
>>>
>>> --> WARNING: The graphviz (dot) version found by tos-check-env is not 
>>> 1.10. Please update your graphviz version if you'd like to use the 
>>> nescdoc documentation generator.
>>>
>>>  
>>>
>>> tos-check-env completed with errors:
>>>
>>> --> WARNING: CLASSPATH may not include 
>>> /opt/tinyos-2.1.0/support/sdk/java/tinyos.jar. Please ensure that 
>>> /opt/tinyos-2.1.0/support/sdk/java/tinyos.jar is in your CLASSPATH or you 
>>> may experience configuration problems
>>>
>>> --> WARNING: CLASSPATH may not include '.' (that is, the symbol for the 
>>> current working directory). Please add '.' to your CLASSPATH or you may 
>>> experience configuration problems.
>>>
>>> --> WARNING: The graphviz (dot) version found by tos-check-env is not 
>>> 1.10. Please update your graphviz version if you'd like to use the 
>>> nescdoc documentation generator.
>>>
>>>  
>>>
>>> This is what I have in the folder /opt/tinyos-2.1.0/support/sdk/java/:
>>>
>>> $ ls -la /opt/tinyos-2.1.0/support/sdk/java/
>>>
>>> total 256
>>>
>>> drwxr-xr-x 3 david david 4096 2009-08-31 18:23 .
>>>
>>> drwxr-xr-x 6 david david 4096 2009-08-31 18:23 ..
>>>
>>> -rw-r--r-- 1 david david 565 2007-08-15 20:06 build.xml
>>>
>>> -rw-r--r-- 1 david david 432 2007-08-31 00:29 Makefile
>>>
>>> -rw-r--r-- 1 david david 2750 2006-07-12 18:59 Makefile.include
>>>
>>> drwxr-xr-x 3 david david 4096 2009-08-31 18:23 net
>>>
>>> -rw-r--r-- 1 david david 230272 2008-08-06 18:31 tinyos.jar
>>>
>>>
>>>
>>> And this is what happens when I try:
>>>
>>> $ java net.tinyos.tools.Listen -comm serial@/dev/ttyS0:tinynode
>>>
>>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>>> net/tinyos/tools/Listen
>>>
>>> or
>>>
>>> /opt/tinyos-2.1.0/apps/tests/TestSerial$ java 
>>> net.tinyos.tools.Listen -comm @serial/dev/ttyUSB0:tinynode
>>>
>>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>>> net/tinyos/tools/Listen
>>>
>>> I hope this could be useful. Thank you very much for your time,
>>>
>>> Regards,
>>>
>>> David
>>>
>>>
>>>
>>>
>>>> Dear Faisal,
>>>>
>>>> I tried with "sudo apt-get install build-essential", but I have the same
>>>> error. I was already using the last version. If you have more ideas do 
>>>> not
>>>> hesitate to tell me.
>>>>
>>>> Thank you anyway,
>>>>
>>>> David
>>>>
>>>>
>>>>
>>>>
>>>>> Dear David,
>>>>>
>>>>> Please try
>>>>>
>>>>> sudo apt-get install build-essential
>>>>>
>>>>> and see if the problem is solved.
>>>>>
>>>>> -- 
>>>>> best regards,
>>>>>
>>>>> Faisal Aslam
>>>>> Ph.D. Candidate
>>>>> University of Freiburg, Germany
>>>>> http://cone.informatik.uni-freiburg.de/people/aslam/
>>>>>
>>>>>
>>>>>
>>>>> David Guillen Jimenez wrote:
>>>>>> Hello everybody,
>>>>>>
>>>>>> I am following the tutorial 4 : Mote-PC serial communication and
>>>>>> SerialForwarder and I can not compile the program TestSerial. I didn't
>>>>>> have any problem with the previous tutorials, but in this one _I have 
>>>>>> an
>>>>>> error like this_:
>>>>>>
>>>>>> *:/opt/tinyos-2.1.0/apps/tests/TestSerial$ make tinynode install,1
>>>>>> bsl,/dev/ttyUSB0*
>>>>>>
>>>>>> mkdir -p build/tinynode
>>>>>>
>>>>>> mig
>>>>>> java -target=null -I/opt/tinyos-2.1.0/tos/lib/T2Hack 
>>>>>> -DIDENT_APPNAME=\"TestSerialAppC\"
>>>>>>  -DIDENT_USERNAME=\"david\" -DIDENT_HOSTNAME=\"ATeNeA\" 
>>>>>> -DIDENT_USERHASH=0xa4d71615L
>>>>>>  -DIDENT_TIMESTAMP=0x4a9cef7fL -DIDENT_UIDHASH=0xe89c97adL 
>>>>>> -java-classname=TestSerialMsg
>>>>>> TestSerial.h test_serial_msg -o TestSerialMsg.java
>>>>>>
>>>>>> /usr/lib/ncc/deputy_nodeputy.h:4:20: error: stddef.h: No such file or
>>>>>> directory
>>>>>>
>>>>>> /usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or
>>>>>> directory
>>>>>>
>>>>>> /usr/lib/ncc/nesc_nx.h:235: syntax error before `__nesc_ntoh_uint8'
>>>>>>
>>>>>> /usr/lib/ncc/nesc_nx.h:240: syntax error before `__nesc_hton_uint8'
>>>>>>
>>>>>> /usr/lib/ncc/nesc_nx.h:242: `value' undeclared here (not in a 
>>>>>> function)
>>>>>>
>>>>>> /usr/lib/ncc/nesc_nx.h:242: warning: data definition has no type or
>>>>>> storage class
>>>>>>
>>>>>> /usr/lib/ncc/nesc_nx.h:243: syntax error before `return'
>>>>>>
>>>>>> /usr/lib/ncc/nesc_nx.h:246: syntax error before `__nesc_ntoh_leuint8'
>>>>>>
>>>>>> /usr/lib/ncc/nesc_nx.h:251: syntax error before `__nesc_hton_leuint8'
>>>>>>
>>>>>> ...................................
>>>>>>
>>>>>> ................................... (continues)
>>>>>>
>>>>>>  
>>>>>>
>>>>>> It seems that it doesn't find some files (stddef.h and inttypes.h). I
>>>>>> tried to copy them to the right folders but I am asked for more 
>>>>>> (ctype.h,
>>>>>> math.h, stdlib.h, string.h). I copy them and I am asked again. At this
>>>>>> moment if I try to compile another example, eg. 'Blink' it doesn't 
>>>>>> work
>>>>>> either 'Blink' example or 'TestSerial' because of compilation errors.
>>>>>>
>>>>>> I use Ubuntu 8.10 and my *.bashrc* has the following line:
>>>>>>
>>>>>> source /opt/tinyos-2.1.0/tinyos.sh
>>>>>>
>>>>>> *that links to tinyos.sh:*
>>>>>>
>>>>>> #! /usr/bin/env bash
>>>>>>
>>>>>> # Here we setup the _environment_
>>>>>>
>>>>>> _# variables_ needed by the tinyos
>>>>>>
>>>>>> # make system
>>>>>>
>>>>>> echo "Setting up for TinyOS 2.1.0"
>>>>>>
>>>>>> export TOSROOT=
>>>>>>
>>>>>> export TOSDIR=
>>>>>>
>>>>>> export MAKERULES=
>>>>>>
>>>>>> TOSROOT="/opt/tinyos-2.1.0"
>>>>>>
>>>>>> TOSDIR="$TOSROOT/tos"
>>>>>>
>>>>>> CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java
>>>>>>
>>>>>> MAKERULES="$TOSROOT/support/make/Makerules"
>>>>>>
>>>>>> export TOSROOT
>>>>>>
>>>>>> export TOSDIR
>>>>>>
>>>>>> export CLASSPATH
>>>>>>
>>>>>> export MAKERULES
>>>>>>
>>>>>>  
>>>>>>
>>>>>> The 'mote' I'm using is *tinynode* (ShockFish).
>>>>>>
>>>>>> Any help or experiences you could provide would be great. Thank you 
>>>>>> very
>>>>>> much in advance,
>>>>>>
>>>>>> David
>>>>>>
>>>>>>  
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Tinyos-help mailing list
>>>>>> [email protected]
>>>>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>>>
>>>> _______________________________________________
>>>> Tinyos-help mailing list
>>>> [email protected]
>>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>> _______________________________________________
>>> Tinyos-help mailing list
>>> [email protected]
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to