Hi Fernando,
I had the same problem, you need to go to $TOSDIR/tools/tinyos/java
,,,then you need to follow the procedure as shown in the tutorial of
"Mote-PC serial communication and SerialForwarder".

There is a section hich says "cannot find JNI library", so what is
happening in your case is that your environment is not able to find the
JNI library.

Being in that directory you need to do this:

Go to tinyos-2.x/tools/tinyos/java. If the directory has a Makefile in
it, type make and (again, on Linux, as superuser) make install. If the
directory does not have a Makefile, go to tinyos-2.x/tools and type:

$ ./Bootstrap
$ ./configure
$ make
$ make install

This should fix the problem.


Cheers,
VJ

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, May 15, 2008 12:28 AM
To: [email protected]
Subject: [Tinyos-help] Port Forwarding; JNI

Well, when I try to execute "java net.tinyos.sf.SerialForwarder -port
9002
-comm serial@/dev/ttyS0:mica2 ", the java serial forwarder opens and the
following message appears:
"Could not open /dev/ttyS0: TOSComm JNI library runtime error: open:
Permission denied
serial@/dev/ttyS0:57600 died - restarting".

And when I try to run the same command with sudo (so I can have
permission), the forwarder do not even start, and this message appear:
"The toscomm JNI library was not found.
Check that your tinyos-tools package is installed and try
rerunning tos-install-jni.
Aborting."

I do not understand that, and have no idea of what to do, beacause the
application is apparently working, as it starts correctly when I type
the
command without 'sudo', but when I try with it, so that it would work
correctly, then it just do not even start


Any idea of what to do?

Thanks,
Fernando.

_______________________________________________
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