Hello
 
Kindly help in running this simple java application with in the tutorial lesson 5 with the tossim application
 
 tools/java/net/tinyos/tinydb/DemoApp.java):
    package net.tinyos.tinydb;      import net.tinyos.tinydb.parser.*;      import java.util.Vector;      import java.io.*;      public class DemoApp implements ResultListener{          public
 DemoApp() {               try {                  TinyDBMain.initMain(); //parse the query                   q = SensorQueryer.translateQuery("SELECT light", (byte)1);                   //inject the query, registering ourselves as a listener for result                   System.out.println("Sending query.");                   TinyDBMain.injectQuery( q, this);               } catch (IOException e) {                   System.out.println("Network error.");               } catch (ParseException e) {                  
System.out.println("Invalid Query."); } } /* ResultListener method called whenever a result arrives */ public void addResult(QueryResult qr) { Vector v = qr.resultVector(); //print the result for (int i = 0; i < v.size(); i++) { System.out.print("\t" + v.elementAt(i) + "\t|"); } System.out.println(); } public static void main(String argv[]) { new DemoApp(); } TinyDBQuery q; }
farhana

Sarfraz Nawaz <[EMAIL PROTECTED]> wrote:
Did you select the plugins?

On 10/28/06, Farhana Jabeen <[EMAIL PROTECTED]> wrote:
Hello

I have made tinyviz running by including a complete path in the  tinyviz -run build/pc/main.exe 30
but the pluggins are not working. Kindly help


farhana

Farhana Jabeen < [EMAIL PROTECTED]> wrote:
Date: Fri, 27 Oct 2006 13:31:45 -0700 (PDT)
From: Farhana Jabeen < [EMAIL PROTECTED]>
Subject: Tinyvizapplication error
To: [EMAIL PROTECTED], [EMAIL PROTECTED]

Hello

I need help regarding running the tinyvizapplication I completed the following steps. But recieve the error at end

1-I moved to the /tinyos/cygwin/opt/tinyos-1.x/apps/tinyvizapp
 given the command
    make pc
2- moved to the /tinyos/cygwin/opt/tinyos-1.x/tools/java/net/tinyos/sim
given the command
    make

3- I included in the environment variable PATH as
C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\net\tinyos\sim

4- when i give the commandild/pc/main.exe 30
export DBG=usr1
tinyviz -run build/pc/main.exe 30
It gives error although start but aborts

Auto Run: Initializing Simulation
AUTORUN: Running simulation :./build/pc/main.exe -gui -r=lossy 30
AutoRUN : unable to run simulation:java.io.IOException:CreateProcess:./build/pc/main.exe -gui -r =lossy 30 error = 2
Goodbye!


Kindly help me
Regards
Farhana

Want to start your own business? Learn how on Yahoo! Small Business.


We have the perfect Group for you. Check out the handy changes to Yahoo! Groups.

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.



Check out the New Yahoo! Mail - Fire up a more powerful email and get things done faster.
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to