Modify the environmental PATH variable to include the exact path to your JDK1.6 installation. It should then use the latest Java version (which should be able to handle Java class files compiled with an older version). Also javac should then work. Sorry, I can't tell you exactly how to do this as I am not very familiar with Windows. Try google with "windows path environmental variables" ...
Cheers, Urs On 1/17/11 1:57 PM, lue ikhong wrote: > any clue how to solve the version confusion problem? > > On Mon, Jan 17, 2011 at 6:47 PM, lue ikhong <[email protected] > <mailto:[email protected]>> wrote: > > ya java version is 1.5.0_22. for the javac, it says" > bash:javac:command not found". why is that? i think they chose the > wrong version as what u say, because previously i installed java > 1.6 which is the latest version, then i unisintalled it and get > the older version which is 1.5, as the tinyos only for 1.4 and 1.5. > > > On Mon, Jan 17, 2011 at 5:20 PM, Urs Hunkeler > <[email protected] <mailto:[email protected]>> wrote: > > 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]> > <mailto:[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
