Hi Jerry, what kind of Java do you have on your PDA? What PDA do you have? In any case you'd need JNI libraries compiled for your platform. If you use JME (microedititon), you don't actually need the libraries, but you'll have to change the code. I have done it once before, but I currently don't have a test environment. I can give you more details tomorrow, and maybe we can write a how-to for others.
Cheers, Urs -original message- Subject: [Tinyos-help] HELP: Toscomm.dll cannot be found From: z qin <[email protected]> Date: 27/08/2010 22:52 Hello everyone, I am trying to connect TelosB mote with a PDA. When I run Listen program, it always says toscomm and getenv JNI library not found. I noticed that toscomm.dll is loaded in program TOSCommLibraryLoader.java: System.loadLibrary("toscomm"). I changed this sentence by replacing it with System.load(absolute.getPath()), as follows: public class TOSCommLibraryLoader { static void load() { File absolute = new File("/My Documents/Tinyos2.1/java/jni/toscomm.dll"); try { boolean exists = (new File(absolute.getPath())).exists(); if (exists) { // File or directory exists System.out.println("toscomm.dll exists"); } else { // File or directory does not exist System.out.println("toscomm.dll doesn't exist"); } //System.loadLibrary("toscomm"); System.load(absolute.getPath()); } catch( Throwable t ) { System.err.println( "The toscomm JNI library was not found.\n"+ "Check that your tinyos-tools package is installed and try\n"+ "rerunning tos-install-jni.\n"+ "Aborting."); System.exit(1); } } } The output is: toscomm.dll does exist, but " The toscomm JNI library was not found..." I don't know why the System.load() fails. Is this because toscomm.dll depends on other files? How to solve this problem? Thanks a lot. Jerry <<ATT00001..txt>> _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
