Hi, Michael,

Thanks for your reply. I followed the steps below"
1) "ls -l $TOSROOT/support/sdk/java/tinyos.jar" to make sure the jar exists
    it returned: -rwx------+   1 michelle  None       230272 Sep 10 04:43
/opt/tinyos-2.x/support/sdk/java/tinyos.jar
2) ""jar tvf $TOSROOT/support/sdk/java/tinyos.jar"
    it returned an error message:
java.io.FileNotFoundException: \opt\tinyos-2.x\support\sdk\java\tinyos.jar
(The system cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at sun.tools.jar.Main.run(Main.java:205)
        at sun.tools.jar.Main.main(Main.java:1022)


Michelle


2008/9/8 Michael Schippling <[EMAIL PROTECTED]>

> I think I (tried to) answer a question like this just recently...
>
> The javac not found thing is probably because you don't have your
> Java SDK bin in your PATH _before_ windows/system32. It might also
> be because it's installed in "Program Files" and directories with
> spaces in them play havoc with bash shell variables. Try
>        type java
> to see where it thinks it's looking.
>
> As to the cannot find symbol errors, it may be that you don't actually
> have a valid jar file at the location specified in your CLASSPATH. Try
>        jar tvf [path-to-tinyos.jar]
> to see if it's got good stuff in it.
>
> Forward slashes and semi-colons are the correct syntax for CLASSPATH.
> The bash PATH also needs forward slashes, but uses colon ':' separators.
>
> Search this list over the last couple weeks for PATH and CLASSPATH.
>
> MS
>
> kwong michelle wrote:
>
>> *I am trying to run RssiDemo in tinyos-2.x on Windows XP machine. When I
>> run "make" in the apps/tutorials/RssiDemo/java directory. I got this error
>> message:*
>>
>> $ make
>> javac RssiDemo.java RssiMsg.java
>> make: javac: Command not found
>> make: *** [RssiDemo.class] Error 127
>>
>> *When I run "C:/Program\ Files/Java/jdk1.6.0_07/bin/javac RssiDemo.java".
>> I got this error message:*
>> RssiDemo.java:40: package net.tinyos.message does not exist
>> import net.tinyos.message.*;
>> ^
>> RssiDemo.java:44: cannot find symbol
>> symbol: class MessageListener
>> public class RssiDemo implements MessageListener {
>>                                 ^
>> RssiDemo.java:46: cannot find symbol
>> symbol  : class MoteIF
>> location: class RssiDemo
>>  private MoteIF moteIF;
>>          ^
>> RssiDemo.java:48: cannot find symbol
>> symbol  : class MoteIF
>> location: class RssiDemo
>>  public RssiDemo(MoteIF moteIF) {
>>                  ^
>> RssiDemo.java:53: cannot find symbol
>> symbol  : class Message
>> location: class RssiDemo
>>  public void messageReceived(int to, Message message) {
>>                                      ^
>> .\RssiMsg.java:7: package net.tinyos.message does not exist
>> public class RssiMsg extends net.tinyos.message.Message {
>>                                               ^
>> .\RssiMsg.java:67: package net.tinyos.message does not exist
>>    public RssiMsg(net.tinyos.message.Message msg, int base_offset) {
>>                                     ^
>> .\RssiMsg.java:76: package net.tinyos.message does not exist
>>    public RssiMsg(net.tinyos.message.Message msg, int base_offset, int
>> data_len
>> gth) {
>>                                     ^
>> RssiDemo.java:87: cannot find symbol
>> symbol  : class MoteIF
>> location: class RssiDemo
>>    MoteIF mif = new MoteIF(phoenix);
>>    ^
>> RssiDemo.java:87: cannot find symbol
>> symbol  : class MoteIF
>> location: class RssiDemo
>>    MoteIF mif = new MoteIF(phoenix);
>>                     ^
>> .\RssiMsg.java:18: cannot find symbol
>> symbol  : method amTypeSet(int)
>> location: class RssiMsg
>>        amTypeSet(AM_TYPE);
>>        ^
>> .\RssiMsg.java:24: cannot find symbol
>> symbol  : method amTypeSet(int)
>> location: class RssiMsg
>>        amTypeSet(AM_TYPE);
>>        ^
>> .\RssiMsg.java:33: cannot find symbol
>> symbol  : method amTypeSet(int)
>> location: class RssiMsg
>>        amTypeSet(AM_TYPE);
>>        ^
>> .\RssiMsg.java:42: cannot find symbol
>> symbol  : method amTypeSet(int)
>> location: class RssiMsg
>>        amTypeSet(AM_TYPE);
>>        ^
>> .\RssiMsg.java:51: cannot find symbol
>> symbol  : method amTypeSet(int)
>> location: class RssiMsg
>>        amTypeSet(AM_TYPE);
>>        ^
>> .\RssiMsg.java:60: cannot find symbol
>> symbol  : method amTypeSet(int)
>> location: class RssiMsg
>>        amTypeSet(AM_TYPE);
>>        ^
>> .\RssiMsg.java:69: cannot find symbol
>> symbol  : method amTypeSet(int)
>> location: class RssiMsg
>>        amTypeSet(AM_TYPE);
>>        ^
>> .\RssiMsg.java:78: cannot find symbol
>> symbol  : method amTypeSet(int)
>> location: class RssiMsg
>>        amTypeSet(AM_TYPE);
>>        ^
>> .\RssiMsg.java:134: cannot find symbol
>> symbol  : method getSIntBEElement(int,int)
>> location: class RssiMsg
>>        return (short)getSIntBEElement(offsetBits_rssi(), 16);
>>                      ^
>> .\RssiMsg.java:141: cannot find symbol
>> symbol  : method setSIntBEElement(int,int,short)
>> location: class RssiMsg
>>        setSIntBEElement(offsetBits_rssi(), 16, value);
>>        ^
>> 20 errors
>>
>> *I searched some previous threads and it's said that this error is caused
>> by CLASSPATH setting. But I didn't know what's wrong with my CLASSPATH
>> setting. My classpath is:*
>> $ echo $CLASSPATH
>> C:/cygwin/opt/tinyos-2.x/support/sdk/java/tinyos.jar;.
>>
>> *Thanks for your help in advance.*
>>
>> Michelle
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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