I also spent a while trying to get the toscomm stuff to work with Sun Java under Linux, but in vain. However, I was quickly able to get it going using IBM's JVM and the corresponding javacomm package. You'll have to register with IBM to do the downloads. The packages you want are these:
ibm-java2-sdk-50-linux-i386.tgz ibm-java2-javacomm-50-linux-i386.tgz You can to start here: http://www-128.ibm.com/developerworks/java/jdk/linux/download.html Simply extract the tarballs and update JDKROOT in your environment to point to wherever you extracted the IBM tarballs. Hope that helps, tony Ankur Kamthe wrote: > Hi, > > first of all thanks to michael schippling and jon gomez... > > i'm using tinyos1-x and both of you were right, my toscomm is messed up > but I still cant figure it out. > - Hide quoted text - > > > my library path is: > library path: /usr/lib/jvm/java- > 1.5.0-sun-1.5.0.06/jre/lib/i386/client:/usr/lib > /jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/../lib/i386 > > first of all I had two libtoscomm.so files one in /usr/lib/tinyos and > the second in /usr/lib/jvm/java- 1.5.0-sun-1.5.0.06/jre/lib/i386/ > > Executing "nm libtoscomm.so" gives > > 0000db5c T Java_net_tinyos_comm_TOSCommJNI_NativeSerial_1read_1_1SWIG_10 > 0000df88 T Java_net_tinyos_comm_TOSCommJNI_NativeSerial_1read_1_1SWIG_11 > > so the read methods exist.. which is one good news... > > Executing "ldd libtoscomm.so" gives > > linux-gate.so.1 => (0xffffe000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb7eac000) > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e8a000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7e80000) > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d51000) > /lib/ld- linux.so.2 (0x80000000) > > so, my libstdc++ and gcc libraries seem to be in order. however, > linux-gate.so.1 points to nothin, so does that mean that its not linked ? > > I did not find any mention of libtoscomm (or associated paths) in my > CLASSPATH. could that be the problem ? > > Could you please help me with this ? _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help