I'm a recalcitrant T1 user so I can only provide opinions on T2. I suspect that you can simply copy the getenv.so or .dll into your JDK/jre/bin directory. I believe T2 "improved" things by providing a new java serial port access, TOScomm, to replace the javacomm from Sun. If it has the same outline as javacomm you should have a jar file to put in jre/lib/ext, a .so or .dll for jre/bin, and a properties file for jre/lib
You might be able to piece things together by reverse engineering the install scripts, but they may be too obfuscated... MS Tal Rusak wrote: > Hi, > Thank you very much for your reply. I do have my own JDK installed, in > my home directory. I tried running the automated install script, however, it > failed to find the custom installed JDK: > ./tos-install-jni.in: line 7: tos-locate-jre: command not found > Java not found, not installing JNI code > Does anyone know how to specify this information or modify the script? > Otherwise, is it possible to manually place the files in the correct > directories? I need to do this for TOS 2.x. > > Thanks! > Tal > > ----- Original Message ----- > From: "Michael Schippling" <[email protected]> > To: [email protected] > Cc: "tinyos-help" <[email protected]> > Sent: Tuesday, June 2, 2009 2:08:00 PM GMT -05:00 US/Canada Eastern > Subject: Re: [Tinyos-help] Install TinyOS Tools without Root Access > > I guess your issue is not being able to access the JDK installation > in order to add the necessary libs and jars? The best solution would > be to get your sysad to install getenv and javax.comm in the appropriate > JRE bin and lib directories. > > But I have, in the dark past on Windows, had success in putting dll's > in the system32 directory, or, presumably, other commonly searched > directories. If adding the lib's directory (note: not the lib itself) > to your PATH and/or LD_LIB_PATH variables doesn't work, then this > technique may not work either. I do know that you can put the javax > comm.jar in your CLASSPATH, but it needs a properties setting that > is usually in: jre/lib/javax.comm.properties so you may be scrod. > > You can always install your own JDK and do with it as you will. > > MS > > > > [email protected] wrote: >> Hi, >> Thank you for your message; I was able to get the jar file working. I >> am wondering if anyone has experience manually setting up the getenv JNI >> library manually for TinyOS 2.x, as in the scenario described. I tried >> adding the file in /support/sdk/java/tinyos/net/tinyos/comm to the path but >> this does not seem to work, I still get the error: >> getenv JNI library not found. Env.getenv will not work >> (run the tos-install-jni tool, see man tos-install-jni for more details) >> >> Thanks, >> Tal >> >> ----- Original Message ----- >> From: "Michael Schippling" <[email protected]> >> To: [email protected] >> Cc: "tinyos-help" <[email protected]> >> Sent: Friday, May 29, 2009 8:09:44 PM GMT -05:00 US/Canada Eastern >> Subject: Re: [Tinyos-help] Install TinyOS Tools without Root Access >> >> If you have file create permission problems try putting everything >> in your own home directory where you can chmod 666 everything. >> If you have a working system someplace else you should be able to >> just copy the jar files (or create them there), and not build the >> whole thing on your new system. >> >> You will also need to install the java native libraries used by TOS: >> getenv and javacomm of some kind. I don't know where they are on T2 >> but some of it used to be under tinyos-1.x/tools/java/jni >> >> MS >> >> [email protected] wrote: >>> Hi, >>> I need to run the tinyos-2.1 tools (especially Listen, PrintF, and >>> SerialForwarder) on a Linux machine which does not have tinyos-2.1 >>> installed and to which I do not have root access. I am wondering how it is >>> possible to run the java tools on such a system. I am able to compile or >>> run Java files. I tried to install the tinyos-2.x/tools folder from source >>> as explained in the readme, but there were permissions errors at the make >>> install step. >>> >>> Thanks! >>> Tal >>> _______________________________________________ >>> 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
