How to compile RIPS Java programs?
*This document is clone form my wiki
related documents :
/tinyos-1.x/contrib/vu/tools/java/isis/nest/localization/ripsls/compilationInstructions.txt
/tinyos-1.x/contrib/vu/tools/java/isis/nest/localization/ripsls/rips_doc.zip
How to include CLASSPATH ?
export CLASSPATH=$CLASSPATH:/opt/tinyos-1.x/contrib/vu/tools/java/jars
2. But there are no make file in these locations. So how to build it?
Ans: Just use javac *.java in all java folders.
3. By the way. Source code uses "javax.comm" class. And this class is not part of standard java classes. We need install javax.comm package.
official description here
official FAQ here
official released library download path
more reference link
We should download librry and install into java machine as following procedure:(for linux only)
1. Ensure that the library libLinuxSerialParallel.so can be loaded.
You can do this either by adding libLinuxSerialParallel.so to the environment LD_LIBRARY_PATH or by copying libLinuxSerialParallel.so to /usr/lib.
example: cp libLinuxSerialParallel.so /usr/lib
2. Copy comm.jar into /jre/lib/extexample: sudo cp comm.jar /usr/lib/jvm/java-1.5.0-sun/jre/lib/ext/
3. Copy javax.comm.properties into /jre/lib/example: sudo cp javax.comm.properties /usr/lib/jvm/java-1.5.0-sun/jre/lib/
RIPS Java Codes
RIPS Java codes located in : /tinyos-1.x/contrib/vu/tools/java/related documents :
/tinyos-1.x/contrib/vu/tools/java/isis/nest/localization/ripsls/compilationInstructions.txt
/tinyos-1.x/contrib/vu/tools/java/isis/nest/localization/ripsls/rips_doc.zip
Environment Preparation
1. include *.jar from contrib/vu/tools/java/jars files to your CLASSPATHHow to include CLASSPATH ?
export CLASSPATH=$CLASSPATH:/opt/tinyos-1.x/contrib/vu/tools/java/jars
2. But there are no make file in these locations. So how to build it?
Ans: Just use javac *.java in all java folders.
3. By the way. Source code uses "javax.comm" class. And this class is not part of standard java classes. We need install javax.comm package.
About javax.comm
javax.comm is extension package for java.official description here
official FAQ here
official released library download path
more reference link
We should download librry and install into java machine as following procedure:(for linux only)
1. Ensure that the library libLinuxSerialParallel.so can be loaded.
You can do this either by adding libLinuxSerialParallel.so to the environment LD_LIBRARY_PATH or by copying libLinuxSerialParallel.so to /usr/lib.
example: cp libLinuxSerialParallel.so /usr/lib
2. Copy comm.jar into /jre/lib/extexample: sudo cp comm.jar /usr/lib/jvm/java-1.5.0-sun/jre/lib/ext/
3. Copy javax.comm.properties into /jre/lib/example: sudo cp javax.comm.properties /usr/lib/jvm/java-1.5.0-sun/jre/lib/
留言