I'm using Xubunto 2.1 from tinyos wiki
http://docs.tinyos.net/index.php/Running_a_XubunTOS_Virtual_Machine_Image_in_VMware_Player
tinyos 2.02 and 2.1 are working file, but I'm having problems using tinyos1.x.
First i've tried to run tinyviz (standard tutorial 5 way), but I got following:
*********************************************************************************************
xubun...@xubuntos-tinyos:/opt/tinyos-1.x/apps/TestTinyViz$ tinyviz
-run build/pc/main.exe 30
java -Dpython.cachedir=/tmp/jython.cache -DDBG= -DSIMDBG=
net.tinyos.sim.SimDriver -gui -run build/pc/main.exe 30
Starting SimDriver...
Simulation random seed 397775663
Initializing simulator objects...
getenv JNI library not found. Env.getenv will not work
(please consult installation directions in
tinyos-1.x/tools/java/net/tinyos/util/Env.INSTALL)
Loading simulator plugins...
Exception in thread "main" java.lang.NullPointerException
at net.tinyos.sim.PluginManager.register(PluginManager.java:77)
at net.tinyos.sim.SimDriver.<init>(SimDriver.java:258)
at net.tinyos.sim.SimDriver.main(SimDriver.java:539)
*********************************************************************************************
When i try compile TinyViz I got following:
*******************************************************************************************
xubun...@xubuntos-tinyos:/opt/tinyos-1.x/tools/java/net/tinyos/sim$ make
... /opt/tinyos-1.x/tools/java/net/tinyos/sim
(cd msg; make)
make[1]: Entering directory `/opt/tinyos-1.x/tools/java/net/tinyos/sim/msg'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/tinyos-1.x/tools/java/net/tinyos/sim/msg'
javac ../sf/old/nido/NidoSerialDataSource.java
/opt/tinyos-1.x/tools/java/net/tinyos/sf/old/ListenServer.java:51:
package javax.comm does not exist
import javax.comm.*;
^
/opt/tinyos-1.x/tools/java/net/tinyos/sf/old/QueuedSerialSource.java:74:
cannot find symbol
symbol : class SerialPort
location: class net.tinyos.sf.old.QueuedSerialSource
private SerialPort serialPort = null;
...[errors: javax.com does not exist, cannot find symbol]
Note: /opt/tinyos-1.x/tools/java/net/tinyos/sf/old/SerialForward.java
uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
34 errors
***********************************************************************************************
How can I solve error: "package javax.comm does not exist"
How to solve "getenv JNI library not found. Env.getenv will not work?"
($JNI is empty????)
I think that CLASSPATH is fine. I'm even not able to make JNI. I can
fix[#] problem just for tinyviz but i can't compile whole sim because
of javax.comm.
[#] TinyViz can run when i do:
/tools/java/net/tinyos/sim$ make clean
/tools/java/net/tinyos/sim$ make
/tools/java/net/tinyos/sim/lossy$ make
/tools/java/net/tinyos/sim/lpacket$ make
/tools/java/net/tinyos/sim$ make jarfile
.. Then I can only run tinyviz
I relly don't know what to do now, please help, to whom can i adress for this?
Thanks in advance.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help