Thanks, in advance, for your help.

I'm using tinyos1.1.5. Mys system JDK is jdk1.5.0_07 and is not stored 
in the cygwin directory. jdk 1.4.2 is in the cygwin directory. I'm 
having problems running TOSSIM through the scripting interface. 

I started SimDriver without TOSSIM. Then I attempted to use the 
scripting inteface to SimDriver as described in the manual. I get a 
java.io.IOException: CreateProcess: error=2

When I try to give it a specific application compiled for 
simulation(Blink) I receive java.io.IOExcption: CreateProcess: error=3

There is either something wrong in my setup or in my understanding of 
how to run TOSSIM using the scripting interface.  
Is there something more I need to set up besides what is exactly in the 
manual?  

Is there a problem with my CLASSPATH pointing to jdk1.5.0_07?

I tried compiling the Blink exe into the simdriver.jar file as 
suggested by Stefan Tillich in  a previous note. It didn't help.

Is there anything else I should look at to help me fix this? I've been 
struggling with it for a while. 

************ ERROR = 2 **********************
>>> sim.exec("build/pc/main.exe", 10)
EXEC: Unable to run simulation: java.io.IOException: CreateProcess: 
build\pc\mai
n.exe -gui -r=lossy -nodbgout -seed=139033157 10 error=2
Traceback (innermost last):
  File "<input>", line 1, in ?
java.io.IOException: CreateProcess: build\pc\main.exe -gui -r=lossy 
-nodbgout -s
eed=139033157 10 error=2
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
        at java.lang.Runtime.exec(Runtime.java:591)
        at java.lang.Runtime.exec(Runtime.java:429)
        at java.lang.Runtime.exec(Runtime.java:326)
        at net.tinyos.sim.SimExec.run(SimExec.java:143)
        at java.lang.Thread.run(Thread.java:595)

java.io.IOException: java.io.IOException: CreateProcess: 
build\pc\main.exe -gui
-r=lossy -nodbgout -seed=139033157 10 error=2


*************ERROR = 3 ******************************
$ java net.tinyos.sim.SimDriver
Starting SimDriver...
Simulation random seed 139033157
Initializing simulator objects...
Loading simulator plugins...
status: Connecting to simulator...
status: Connection to simulator failed


Welcome to Tython. Type 'quit' to exit.
ESC on a line by itself will pause/resume the simulator.

>>> from simcore import *
>>> sim.exec("/opt/tinyos-1.x/apps/Blink/build/pc/main.exe", 10)
EXEC: Unable to run simulation: java.io.IOException: CreateProcess: 
\opt\tinyos
1.x\apps\Blink\build\pc\main.exe -gui -r=lossy -nodbgout 
-seed=139033157 10 err
r=3
Traceback (innermost last):
  File "<input>", line 1, in ?
java.io.IOException: CreateProcess: 
\opt\tinyos-1.x\apps\Blink\build\pc\main.ex
 -gui -r=lossy -nodbgout -seed=139033157 10 error=3
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
        at java.lang.Runtime.exec(Runtime.java:591)
        at java.lang.Runtime.exec(Runtime.java:429)
        at java.lang.Runtime.exec(Runtime.java:326)
        at net.tinyos.sim.SimExec.run(SimExec.java:143)
        at java.lang.Thread.run(Thread.java:595)

java.io.IOException: java.io.IOException: CreateProcess: 
\opt\tinyos-1.x\apps\B
ink\build\pc\main.exe -gui -r=lossy -nodbgout -seed=139033157 10 error=3
>>>

again, thanks,
Marguerite
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to