Hi, Not all functionality can be implemented in Java, and in TinyOS access to operating system variables (getenv) and to the serial port (toscomm) are implemented as native libraries. Why getenv is necessary, I don't know. In any case, if you do not want to install the TinyOS environment, you could simply use the TinyOS .jar file from the link below. This is a version that will try to extract the native libraries from the .jar file if they are not installed, and thus the Java libraries should work without installing the full TinyOS environment.
http://tinyos-main.googlecode.com/svn/trunk/support/sdk/java/tinyos.jar Cheers, Urs On 5/13/11 11:24 AM, hayet nasri wrote: > > Good Morning > I'm working on a project "management of WSN. I find in Internet a project > "Octopus: A Dashboard for Sensor Networks Visual Control" it's a good job. > it helps me very much. > But there's one thing I do not understand: when I execute the code java in > netbeans on ubuntu it appears in the output message > "getenv JNI library not found. Env.getenv Will not work > (Run the tos-install-jni tool, see man tos-install-jni for more details) > > sf @ localhost: 9002 Died - exiting (java.net.ConnectException: Connection > refused) > Java Result: 2 " > can you help me please. > I would appreciate your help. thank you in advance. > > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
