Hi Bhavish,

Sometimes debugging the TOSComm problems is not that easy. Try the attached Java program, which I just recently wrote to debug a similar problem on one of my systems. First it prints the paths that are searched for libraries. Make sure that your TOSComm.dll is in one of the paths. It then tries to load the library and if it fails, it shows the complete error message (which is hidden by the TinyOS libraries). If you still don't manage to get it working, could you please post the messages you get from this program?

Cheers,
Urs


Bhavish Aggarwal wrote:
I searched and found TOSComm.dll in my jre/bin directory. I copied the
same to system32 directory but it still gives the same error.

Is some classpath variable corrupted?

Bhavish

On Tue, Apr 15, 2008 at 11:00 PM, Michael Schippling <[EMAIL PROTECTED]> wrote:
Off hand I don't know the name of the TOSComm library,
 but that's what's not being found. A little searching
 should turn up that name, and then you should try to
 find it on your system. It should either be in system32
 or in your JRE/bin directory.

 I guess you don't hear success stories, but in general
 I've never heard that tos-install-jni has worked...

 MS
public class LibTest {
  public static void main(String[] args) {
    System.out.println(">> " + System.getProperty("java.library.path"));
    try {
      System.loadLibrary("toscomm");
    } catch(Exception ex) {
      ex.printStackTrace();
    }
  }
}

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to