You should probably read a bit about Java and it's ideas of program structure before you really frustrate yourself...
But to answer your question: Basically package names and directory structures should be congruent. Put your file in the same directory as "Listen.java" if you want to run it with the package name you gave. I'm not sure how the TOS makefile works in the tools trees -- it may make everything -- but you can usually compile any program and it's dependencies with: javac full/path/to/main/file.java MS andy fox wrote: > I want to use the Listen file to read in input from a telosb mote but > instead of just displaying the packet in hex, I would like to use the > packet info to do something else. > Just to test though I am just trying to get a file with the name > plot.java to run. It has the exact same code as Listen.java does but > I'm not sure where to put it. > I would like to run this program by using a command like java > net.tinyos.tools.plot. > Any help would be appreciated. > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > Tinyos-help@millennium.berkeley.edu > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help