while trying to run TestSerial:

The toscomm JNI library was not found.
Check that your tinyos-tools package is installed and try
rerunning tos-install-jni.
Aborting.

what is a possible workaround? i tried the following:
1.sudo tos-install-jni  from TestSerial
       response:
       [: 31: =: unexpected operator
       Installing 32-bit Java JNI code in
/usr/lib/jvm/java-1.5.0-sun/jre/lib/i386 ...
       done.

2.If you have not installed the tools RPM and are working directly from the
TinyOS CVS repository, you can manually install the tos-locate-jre script.
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

Then type tos-install-jni.

Response: Making install in platforms
make[1]: Entering directory
`/home/purple/local/src/tinyos-2.x/tools/platforms'
Making install in mica
make[2]: Entering directory
`/home/purple/local/src/tinyos-2.x/tools/platforms/mica'
Making install in cc1000-channelgen
make[3]: Entering directory
`/home/purple/local/src/tinyos-2.x/tools/platforms/mica/cc1000-channelgen'
make[4]: Entering directory
`/home/purple/local/src/tinyos-2.x/tools/platforms/mica/cc1000-channelgen'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /usr/bin/install -c 'tos-channelgen' '/usr/local/bin/tos-channelgen'
make[4]: Leaving directory
`/home/purple/local/src/tinyos-2.x/tools/platforms/mica/cc1000-channelgen'
make[3]: Leaving directory
`/home/purple/local/src/tinyos-2.x/tools/platforms/mica/cc1000-channelgen'
make[2]: Leaving directory
`/home/purple/local/src/tinyos-2.x/tools/platforms/mica'
make[1]: Leaving directory
`/home/purple/local/src/tinyos-2.x/tools/platforms'

pur...@purple:~/local/src/tinyos-2.x/tools$ tos-install-jni
[: 31: =: unexpected operator
Installing 32-bit Java JNI code in /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386
...
install: cannot remove
`/usr/lib/jvm/java-1.5.0-sun/jre/lib/i386/libgetenv.so': Permission denied
pur...@purple:~/local/src/tinyos-2.x/tools$ sudo tos-install-jni
[: 31: =: unexpected operator
Installing 32-bit Java JNI code in /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386
...
done.

3.   1.   locate *the* *jni* path using
             *tos*-locate-jre --*jni*
             this gives /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386

       2.   go to /usr/lib/*tinyos* on terminal
             type : cp libtoscomm-32.so
/usr/lib/jvm/java-1.5.0-sun/jre/lib/i386
 *             *type :cp libgetenv-32.so
/usr/lib/jvm/java-1.5.0-sun/jre/lib/i386

        3.  go to *your* app (TestSerial)
             type *tos*-*install*-*jni*


         4 with *the* *jni* *library* *installed*
             type :  java TestSerial -comm
serial@<portno>:<platform_name>(iris,micaz
,etc)

Response: same error. manually checked if this file is present, it is.

4. Didnt know how to run this program:


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



5.Couldnt understand what this means:

*     "so if you have more then one Java version installed, verify if
the same version is set for superuser and your user*"

     java -version returned

     java version "1.6.0_20"
     Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
     Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)

}

PLEASE HELP!!

-Sandhya P C



-- 
Aerodynamically the bumblebee shouldn't be able to fly,
but the bumblebee doesn't know that so it goes on flying anyway.
~Mary Kay Ash
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to