[Tinyos-help] SerialForwarder Help

Urs Hunkeler urs.hunkeler at epfl.ch
Fri Nov 5 23:40:20 PDT 2010


Hi,

With java, you specify the class name, not the file name, so no trailing 
".class". Also, you need to specify the full class name (including the 
package):

java net.tinyos.sf.SerialForwarder

For more details about the SerialForwarder, see the tutorials, and more 
specifically:

http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#SerialForwarder_and_other_packet_sources

Cheers,
Urs


On 11/5/10 5:16 PM, José Eduardo S. C. Xavier wrote:
> Hi,
> i want to use SerialFotwarder but it get me some erros:
>
> /root at ze-KPC:/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/sf# java
> SerialForwarder.class/
> /Exception in thread "main" java.lang.NoClassDefFoundError:
> SerialForwarder/class/
> /Caused by: java.lang.ClassNotFoundException: SerialForwarder.class/
> /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:321)/
> /at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)/
> /at java.lang.ClassLoader.loadClass(ClassLoader.java:266)/
> /Could not find the main class: SerialForwarder.class. Program will exit./
> /root at ze-KPC:/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/sf# /



More information about the Tinyos-help mailing list