it's because the java files have been compiled with a newer version of Java
than the one are you using to run it. Make sure to have the latest JDK/JRE
installed and correctly referenced in the PATH env variable.

Cheers,

-- 
Raffaele Gravina | Research Engineer

Wireless Sensor Networks Lab Berkeley
2000 Hearst Ave, suite 304
Berkeley, CA 94709
+1 510 666 0174 ext. 101

2009/7/21 bouzayani walid <[email protected]>

> Hello,
>
>
> I used Tinyos2.1 under Wondows XP and Telosb mot.e
>
> I installed and checked my Tos2.x environment and Telosb platforms without
> error (tos-check-env results no erros).
>
> But when i run the oscilloscope application with* java
> net.tinyos.tools.Listen.* many errors appear like:
>
>
> $ java net.tinyos.tools.Listen
>
>
> *Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
> version number in .class file
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)*
>
>
>  Whats problems?
> Thanks in advance
> ______________________________
> BOUZAYANI Walid
> Research Engineer
> CES Laboratory, ENIS Tunisia
> [email protected]
> GSM: (00216) 94 306 603
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to