---------- Forwarded message ---------- From: Tomislav Lipic <[email protected]> Date: 2009/1/27 Subject: HELP: Xubuntos 2.1 - package javax.comm To: [email protected]
Hi, I apologize for bothering you, but can you please help me about following problem with tinyos1.x: I'm using XubunTOS 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? dir "/usr/lib/jvm/java-1.5.0-sun/jre/lib/i386" has (it looks fine): libgetenv.so libtoscomm.so (?) libTOScomm.so 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, please help? Thanks in advance. Cheers, Tomislav _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
