I might be late to reply, but here it goes :

I got the same error today, and I simply solved it by installing java
version 1.6 and jre6, and by making Java 1.6 version as the default version.

I also had java 1.5 installed earlier, as tos-check-env wanted me to have
either java 1.4 or java 1.5 versions installed.

I also included both the java 1.5 and 1.6 versions to my classpath and ran
"make micaz" again in the /opt/tinyos-2.1.0/apps/Blink directory and it
worked.

I hope this helps.

Regards,

Akshaya Aradhya
Student Researcher,
SMU


Sam Azzaro wrote:
> 
> 
> hi all,i use tinyos 2.1 with win Xp on cygwini successfully compiled the
> blik application with make micaz sim but when i try  to compile the
> BlinkAppC to a micaz binary, i get this: $ make micaz installmkdir -p
> build/micaz    compiling BlinkAppC to a micaz binaryncc -o
> build/micaz/main.exe  -Os -Wall -Wshadow -Wnesc-all -target=micaz
> -fnesc-cfile=build/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22
> --param max-inline-insns-single=100000 -DIDENT_APPNAME=\"BlinkAppC\"
> -DIDENT_USERNAME=\"Administrateur\" -DIDENT_HOSTNAME=\"3ff747e3307347b\"
> -DIDENT_USERHASH=0xeed6393eL -DIDENT_TIMESTAMP=0x4b2a2789L
> -DIDENT_UIDHASH=0x5929b5faL -fnesc-dump=wiring
> -fnesc-dump='interfaces(!abstract())'
> -fnesc-dump='referenced(interfacedefs, components)'
> -fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc -lmException in
> thread "main" java.lang.UnsupportedClassVersionError: Bad version number
> in .class file        at java.lang.ClassLoader.defineClass1(Native Method)    
>    
> at java.lang.ClassLoader.defineClass(Unknown Source)        at
> java.security.SecureClassLoader.defineClass(Unknown Source)        at
> java.net.URLClassLoader.defineClass(Unknown Source)        at
> java.net.URLClassLoader.access$100(Unknown Source)        at
> java.net.URLClassLoader$1.run(Unknown Source)        at
> java.security.AccessController.doPrivileged(Native Method)        at
> java.net.URLClassLoader.findClass(Unknown Source)        at
> java.lang.ClassLoader.loadClass(Unknown Source)        at
> sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)        at
> java.lang.ClassLoader.loadClass(Unknown Source)        at
> java.lang.ClassLoader.loadClassInternal(Unknown Source)make: *** [exe0]
> Error 1
> 
> note:  "tos-check-env" completed without errorsand i use java jdk1.5can
> anyone help me please!!!
>                                         
> _________________________________________________________________
> Achetez un nouveau PC et bénéficiez de Windows 7 dès sa sortie !
> http://www.portable-windows.com/
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 

-- 
View this message in context: 
http://old.nabble.com/Error-with-make-micaz-install-tp26827928p29003544.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.


_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to