On Tue, Oct 15, 2002 at 08:04:07PM -0500, Pankaj Kalore wrote:
> Greetings,
> 
> 
> Following error was encountered while "make" -ing the tinydb application.
> 
> %-------------------------------------
> Paltform:    x86 - WinXP - cygwin - TinyOS-1.x - mica
> Used TinyOS-1.x web installer for TinyOS-1.x install.
> %-------------------------------------
> pwd:
> /cygdrive/c/tinyos-1.x/tools/java/net/tinyos/tinydb
> %-------------------------------------
> command issued:
> make
> %-------------------------------------
> Error encountered:(The complete output is at the end on the email.)
> 
> "cd parser
> make -C parser -f Makefile
> make[1]: Entering directory `/cygdrive/c/tinyos-1.x/tools/java/net/tinyos/tinydb
> /parser'
> java java_cup.Main -parser senseParser < senseParser.cup
> count = 0, total = 70
> count = 0, total = 87
> count = 0, total = 30
> Exception in thread "main" java.lang.NoClassDefFoundError: java_cup/Main

This suggests that the tinyos-1.x/java/jars/JLex.jar and cup.jar aren't in
your classpath.  You'll also need to make sure that the "plot.jar" file and
"tinyos-1.x/java/" directory are in your classpath to get TinyDB to run.

See the TinyDB tutorial or http://telegraph.cs.berkeley.edu/tinydb for more
information about setting up and running TinyDB.



Note that that `javapath` tool in the tools/java directory will output a new
classpath that includes all of the jar files in the java/jars directory;  in
general, it's a good idea to use this since a number of the TinyOS java tools
depend on one more more jar files.

To use this tool under bash (the default Cygwin shell, I think) , you'd type:

export CLASSPATH=`/path/to/tinyos/tinyos-1.x/tools/java/javapath`

Replace /path/to/tinyos with the path to the directory where your tinyos-1.x
directory lives.  

Note that this tool prepends onto your existing classpath, so this should
be all you need to type even if your classpath is already non-empty.

-Sam
_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to