Thanks, now it gives me that error:

r...@ze-kpc:/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/sf# java
net.tinyos.sf.SerialForwarder
No protocol specified

Exception in thread "main" java.lang.InternalError: Can't connect to X11
window server using ':0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

        at
sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:62)

        at
sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:178)
        at java.security.AccessController.doPrivileged(Native Method)
        at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:142)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
        at java.awt.Window.init(Window.java:385)
        at java.awt.Window.<init>(Window.java:438)
        at java.awt.Frame.<init>(Frame.java:419)
        at javax.swing.JFrame.<init>(JFrame.java:218)
        at net.tinyos.sf.SFWindow.createGui(SFWindow.java:87)
        at net.tinyos.sf.SerialForwarder.<init>(SerialForwarder.java:105)
        at net.tinyos.sf.SerialForwarder.main(SerialForwarder.java:92)
r...@ze-kpc:/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/sf#

:S Can you help me please?!

No dia 6 de Novembro de 2010 06:40, Urs Hunkeler <[email protected]>escreveu:

> 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:
>>
>> /r...@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./
>> /r...@ze-kpc:/opt/tinyos-2.1.1/support/sdk/java/net/tinyos/sf# /
>>
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to