Hi,
Try opening a console under /opt/tinyos-2.1.0/support/sdk/java and
type 'make' command. After that try to build the Oscilloscope application.
Akif
On Fri, Nov 28, 2008 at 10:35 AM, ivi610 <[EMAIL PROTECTED]> wrote:
> Hello
> i have installed tinyos 2.1 but have some issues whith tinyos.jar.
> I tried to compile Oscilloscope application but it fails.
> I also tried to compile tinyos.jar with "make tinyos.jar" but fails also.
> Any idea?
> Thanks
> ##########################################################################"
> [EMAIL PROTECTED]
> /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/apps/Oscilloscope/ja
> va
> $ make
> javac *.java
> Oscilloscope.java:11: package net.tinyos.message does not exist
> import net.tinyos.message.*;
> ^
> Oscilloscope.java:12: package net.tinyos.util does not exist
> import net.tinyos.util.*;
> ^
> Oscilloscope.java:36: cannot find symbol
> symbol: class MessageListener
> public class Oscilloscope implements MessageListener
> ^
> Oscilloscope.java:38: cannot find symbol
> symbol : class MoteIF
> location: class Oscilloscope
> MoteIF mote;
> ^
> Oscilloscope.java:66: cannot find symbol
> symbol : class Message
> location: class Oscilloscope
> Message msg) {
> ^
> OscilloscopeMsg.java:7: package net.tinyos.message does not exist
> public class OscilloscopeMsg extends net.tinyos.message.Message {
> ^
> OscilloscopeMsg.java:67: package net.tinyos.message does not exist
> public OscilloscopeMsg(net.tinyos.message.Message msg, int base_offset)
> {
> ^
> OscilloscopeMsg.java:76: package net.tinyos.message does not exist
> public OscilloscopeMsg(net.tinyos.message.Message msg, int base_offset,
> int
> data_length) {
> ^
> Oscilloscope.java:55: cannot find symbol
> symbol : class MoteIF
> location: class Oscilloscope
> mote = new MoteIF(PrintStreamMessenger.err);
> ^
> Oscilloscope.java:55: cannot find symbol
> symbol : variable PrintStreamMessenger
> location: class Oscilloscope
> mote = new MoteIF(PrintStreamMessenger.err);
> ^
> Oscilloscope.java:114: cannot find symbol
> symbol : variable MoteIF
> location: class Oscilloscope
> mote.send(MoteIF.TOS_BCAST_ADDR, omsg);
> ^
> OscilloscopeMsg.java:18: cannot find symbol
> symbol : method amTypeSet(int)
> location: class OscilloscopeMsg
> amTypeSet(AM_TYPE);
> ^
> OscilloscopeMsg.java:24: cannot find symbol
> symbol : method amTypeSet(int)
> location: class OscilloscopeMsg
> amTypeSet(AM_TYPE);
> ^
> OscilloscopeMsg.java:33: cannot find symbol
> symbol : method amTypeSet(int)
> location: class OscilloscopeMsg
> amTypeSet(AM_TYPE);
> ^
> OscilloscopeMsg.java:42: cannot find symbol
> symbol : method amTypeSet(int)
> location: class OscilloscopeMsg
> amTypeSet(AM_TYPE);
> ^
> OscilloscopeMsg.java:51: cannot find symbol
> symbol : method amTypeSet(int)
> location: class OscilloscopeMsg
> amTypeSet(AM_TYPE);
> ^
> OscilloscopeMsg.java:60: cannot find symbol
> symbol : method amTypeSet(int)
> location: class OscilloscopeMsg
> amTypeSet(AM_TYPE);
> ^
> OscilloscopeMsg.java:69: cannot find symbol
> symbol : method amTypeSet(int)
> location: class OscilloscopeMsg
> amTypeSet(AM_TYPE);
> ^
> OscilloscopeMsg.java:78: cannot find symbol
> symbol : method amTypeSet(int)
> location: class OscilloscopeMsg
> amTypeSet(AM_TYPE);
> ^
> OscilloscopeMsg.java:150: cannot find symbol
> symbol : method getUIntBEElement(int,int)
> location: class OscilloscopeMsg
> return (int)getUIntBEElement(offsetBits_version(), 16);
> ^
> OscilloscopeMsg.java:157: cannot find symbol
> symbol : method setUIntBEElement(int,int,int)
> location: class OscilloscopeMsg
> setUIntBEElement(offsetBits_version(), 16, value);
> ^
> OscilloscopeMsg.java:213: cannot find symbol
> symbol : method getUIntBEElement(int,int)
> location: class OscilloscopeMsg
> return (int)getUIntBEElement(offsetBits_interval(), 16);
> ^
> OscilloscopeMsg.java:220: cannot find symbol
> symbol : method setUIntBEElement(int,int,int)
> location: class OscilloscopeMsg
> setUIntBEElement(offsetBits_interval(), 16, value);
> ^
> OscilloscopeMsg.java:276: cannot find symbol
> symbol : method getUIntBEElement(int,int)
> location: class OscilloscopeMsg
> return (int)getUIntBEElement(offsetBits_id(), 16);
> ^
> OscilloscopeMsg.java:283: cannot find symbol
> symbol : method setUIntBEElement(int,int,int)
> location: class OscilloscopeMsg
> setUIntBEElement(offsetBits_id(), 16, value);
> ^
> OscilloscopeMsg.java:339: cannot find symbol
> symbol : method getUIntBEElement(int,int)
> location: class OscilloscopeMsg
> return (int)getUIntBEElement(offsetBits_count(), 16);
> ^
> OscilloscopeMsg.java:346: cannot find symbol
> symbol : method setUIntBEElement(int,int,int)
> location: class OscilloscopeMsg
> setUIntBEElement(offsetBits_count(), 16, value);
> ^
> OscilloscopeMsg.java:428: cannot find symbol
> symbol : method getUIntBEElement(int,int)
> location: class OscilloscopeMsg
> return (int)getUIntBEElement(offsetBits_readings(index1), 16);
> ^
> OscilloscopeMsg.java:435: cannot find symbol
> symbol : method setUIntBEElement(int,int,int)
> location: class OscilloscopeMsg
> setUIntBEElement(offsetBits_readings(index1), 16, value);
> ^
> Note: Window.java uses unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 29 errors
> make: *** [Oscilloscope.class] Error 1
> ##########################################################################
> [EMAIL PROTECTED]
> /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/apps/Oscilloscope/ja
> va
> $ echo $CLASSPATH
> /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/support/sdk/java/tinyos.jar:.
>
> [EMAIL PROTECTED]
> /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/apps/Oscilloscope/ja
> va
> $ tos-locate-jre --java
> /cygdrive/c/Program Files/Java/jdk1.6.0_10/bin
>
> [EMAIL PROTECTED]
> /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/apps/Oscilloscope/ja
> va
> $ tos-locate-jre --javac
> /cygdrive/c/Program Files/Java/jdk1.6.0_10/bin
>
> [EMAIL PROTECTED]
> /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/apps/Oscilloscope/ja
> va
> $ tos-locate-jre --jni
> /cygdrive/c/Program Files/Java/jdk1.6.0_10/jre/bin
>
> [EMAIL PROTECTED]
> /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/apps/Oscilloscope/ja
> va
> $ tos-install-jni
> Installing 32-bit Java JNI code in /cygdrive/c/Program
> Files/Java/jdk1.6.0_10/jr
> e/bin ...
> done.
> ####################################################################
>
> Cyril
>
>
> _______________________________________________
> 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