Ok, first things first...
Try this: java TestSerial -comm serial@<port>:<mote type>

2009/10/1 Zé Pedro Espogeira <[email protected]>

>  im running from the TestSerial directory where located the
> TestSerial.class (the directory is the one inside the /tinyos/apps)
> so i guess the reason for this error as to do with the "java" command that
> seems it is not looking for the TestSerial.class in the right place,
> thats why i asked for you opinion regarding the JDK instalation.
>
> im reading ore forum that refers a JAVA_HOME variable, that its not
> included in my .bashrc file
> Do you think it has to do with it?
>
> Thank you
> Ze
>
> ------------------------------
> Date: Thu, 1 Oct 2009 11:12:24 +0100
> From: [email protected]
> To: [email protected]
> Subject: Re: [Tinyos-help] TestSerial error
>
> This error happens because you are not running the command in the directory
> where is the TestSerial.class.
>
> 2009/10/1 Zé Pedro Espogeira <[email protected]>
>
>  Hi to all,
>
>
>
> i added to  bashrc file the lines to CLASSPATH and MOTECOM
> export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar  ($TOSROOT is tinyos
> root)
> export MOTECOM=serial@/dev/ttyUSB0:115200
>
> but im still getting this error when running TestSerial
>
> z...@ze-laptop:~$ java TestSerial
> Exception in thread "main" java.lang.NoClassDefFoundError: TestSerial
> Caused by: java.lang.ClassNotFoundException: TestSerial
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
> Could not find the main class: TestSerial. Program will exit.
>
> anyone have any idea why it shows this error?
>
> do you think it has to do with the JDK installement?
>
> Thank you
> Ze
>
> ------------------------------
> Quer uma internet mais segura? Baixe agora o novo Internet Explorer 8. É
> grátis!<http://brasil.microsoft.com.br/IE8/mergulhe/?utm_source=MSN;Hotmail&utm_medium=Tagline&utm_campaign=IE8>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>
> ------------------------------
> Instale o novo Internet Explorer 8 otimizado para o MSN. Download 
> aqui<http://ie8.msn.com/microsoft/internet-explorer-8/pt-br/ie8.aspx>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to