Hi, Please try to run the commands on the command line to find the version that is actually used (as stated in the previous mails, the commands are "java -version" and "javac -version"). Sometimes there are multiple versions of Java installed without you knowing and somehow the wrong version gets chosen.
Cheers, Urs On 01/17/2011 09:55 AM, lue ikhong wrote: > i was running on windows 7 64 bit using cygwin. but now, im trying to > run it on my another pc which is window xp 32bit, and the same problem > occured. > my java version is J2SE DK 5.0 update 22. and i dont know about the javac. > sorry,i am very new in this field, as i dont have any background on > computer science. > > > On Mon, Jan 17, 2011 at 12:11 AM, Urs Hunkeler <[email protected] > <mailto:[email protected]>> wrote: > > Hi, > > Usually, that's more like a problem with a version mismatch of Java > itself. It's even possible that you compile your programs with one > version and try to run it with a different version. > > Are you running Linux or Windows? Which version? > What versions of javac and java do you have? ("javac -version" and > "java -version")? > Is there any additional information to the error (like class file > version numbers)? > Why does Blink need Java? > > Cheers, > Urs > > > > On 01/17/2011 04:31 AM, lue ikhong wrote: > > hi, > i am a beginner in tinyos. i am using windows 7 64-bit OS. > whenever i > want to compile application for tinynode,for example Blink, > there would > be error like below: > > $make tinynode > > > ......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<unknown source> > at java .security.secureclassloader.defineclass<unknown source> > at java.net.URLClassloader.defineClass<unknown Source> > ......etc,etc. > make:***{exe0} Error 1 > > > is it the problem with my jdk? i had installed both 32-bit and > 64 bit > version of jdk 1.5 to my program files(x86) and program files > respectively. > > > anyone could help me to solve this, please..... > > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
