Hi:

I want to develop an application based on the serial communication of
tinyos2's toscommjni,
 but it  always has runtime error,

I have done following:

. copy libtoscomm-32.so and libgetenv-32.so into
usr/lib/jvm/[java-path]/jre/lib/i386, and xxxx/jre/bin/ directory
. I copy all the net.tinyos.comm to my project , and use serialByteSource of
t2 its own.
.I have compiled them, it is successful
. when running,   native_gettossmap error

Exception in thread "Thread-4" java.lang.UnsatisfiedLinkError:
rpc.packet.comm.TOSCommJNI.NativeSerial_getTOSCommMap()Ljava/lang/String;
    at rpc.packet.comm.TOSCommJNI.NativeSerial_getTOSCommMap(Native Method)
    at rpc.packet.comm.NativeSerial.getTOSCommMap(NativeSerial.java:207)
    at rpc.packet.comm.TOSSerial.<init>(TOSSerial.java:281)
    at rpc.packet.SerialByteSource.openStreams(SerialByteSource.java:56)
    at rpc.packet.StreamByteSource.open(StreamByteSource.java:79)
    at rpc.packet.Packetizer.openSource(Packetizer.java:125)
    at rpc.packet.AbstractSource.open(AbstractSource.java:77)
    at rpc.packet.Packetizer.open(Packetizer.java:119)
    at rpc.packet.PhoenixSource.run(PhoenixSource.java:168)


is there anything wrong with the *.so itself?  and does anyone encounter
this before?

thank you.


-- 
Xiaogang Yang
Sensorweb Research Laboratory
http://sensorweb.vancouver.wsu.edu/
Washington State University Vancouver
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to