Hi Himanshu, This problem means that the class files were compiled with a different version of java. It is possible that the files installed by TinyOS were compiled with Java 1.5, while you are still using 1.4. I think you can check the version of your java compiler by typing "javac -version".
Cheers, Urs Himanshu Shivam schrieb: > hi, > > thanks for reply.. > > i defined CLASSPATH again in cygwin.. infact i was doing same for > classpath.. but this time i got another error > --------------------------------------------------------------------------------------------------------------------------------- > $ export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar` > > $ export CLASSPATH="$CLASSPATH;." > --------------------------------------------------------------------------------------------------------------------------------- > welc...@inc1 <mailto:welc...@inc1> /opt/tinyos-2.x/support/sdk/java > $ cd > welc...@inc1 <mailto:welc...@inc1> ~ > $ cd /opt/tinyos-2.x/apps/RadioCountToLeds > welc...@inc1 <mailto:welc...@inc1> /opt/tinyos-2.x/apps/RadioCountToLeds > $ make micaz sim > mkdir -p simbuild/micaz > javac RadioCountMsg.java > RadioCountMsg.java:7: cannot access net.tinyos.message.Message > bad class file: > C:\tinyos\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar(net/ > tinyos/message/Message.class) > class file has wrong version 50.0, should be 49.0 > Please remove or make sure it appears in the correct subdirectory of the > classpa > th. > public class RadioCountMsg extends net.tinyos.message.Message { > ^ > 1 error > make: *** [RadioCountMsg.class] Error 1 > ---------------------------------------------------------------------------------------------------------------------------------- > > Regards > Himanshu > > > > > > ------------------------------------------------------------------------ > New Email names for you! > <http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/> > > Get the Email name you've always wanted on the new @ymail and @rocketmail. > Hurry before someone else does! > --- On *Sat, 25/4/09, Urs Hunkeler /<u...@gmx..ch>/* wrote: > > > From: Urs Hunkeler <u...@gmx.ch> > Subject: Re: [Tinyos-help] Java Problems > To: "Himanshu Shivam" <h_shi...@yahoo.com> > Cc: "tinyos help" <tinyos-help@millennium.berkeley.edu>> > > ------------------------------------------------------------------------ > New Email names for you! > <http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/> > > Get the Email name you've always wanted on the new @ymail and @rocketmail. > Hurry before someone else does! > Date: Saturday, 25 April, 2009, 10:53 AM > > Hi Himanshu, > > Java does not find the TinyOS Java APIs on your system. Did you set the > classpath properly?> > > ------------------------------------------------------------------------ > New Email names for you! > <http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/> > > Get the Email name you've always wanted on the new @ymail and @rocketmail. > Hurry before someone else does! > > If you are using Windows, have a look at step 5 in the installation > instructions: > > http://docs.tinyos.net/index.php/Installing_TinyOS_2.1#Manual_installation_on_your_host_OS_with_RPMs > > Cheers, > Urs > > > Himanshu Shivam schrieb: > > Hello Everyone, > > > > i tried to compile the application "RadioCountToLeds" using $ make > micaz > > sim. > > > > i got 13 errors showing from java .. please guide me to solve this.. > > > > ---------------------------------------------------------------------------------------------------------------------------------- > > $ make micaz sim> > > ------------------------------------------------------------------------ > New Email names for you! > <http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/> > > Get the Email name you've always wanted on the new @ymail and @rocketmail. > Hurry before someone else does! > > mkdir -p simbuild/micaz > > javac RadioCountMsg.java > > RadioCountMsg.java:7: package net.tinyos.message does not exist > > public class RadioCountMsg extends net.tinyos.message.Message { > > ^ > > RadioCountMsg.java:67: package net.tinyos.message does not exist > > public RadioCountMsg(net.tinyos.message.Message msg, int > base_offset) { > > ^ > > RadioCountMsg.java:76: package net.tinyos.message does not exist > > public RadioCountMsg(net..tinyos.message.Message msg, int > > base_offset, int da > > ta_length) { > > ^ > > RadioCountMsg.java:18: cannot find symbol > > symbol : method amTypeSet(int) > > location: class RadioCountMsg > > amTypeSet(AM_TYPE); > > ^ > > RadioCountMsg.java:24: cannot find symbol > > symbol : method amTypeSet(int) > > location: class RadioCountMsg > > amTypeSet(AM_TYPE); > > ^ > > RadioCountMsg.java:33: cannot find symbol > > symbol : method amTypeSet(int) > > location: class RadioCountMsg > > amTypeSet(AM_TYPE); > > ^ > > RadioCountMsg.java:42: cannot find symbol > > symbol : method amTypeSet(int) > > location: class RadioCountMsg > > amTypeSet(AM_TYPE); > > ^ > > RadioCountMsg.java:51: cannot find symbol > > symbol : method amTypeSet(int) > > location: class RadioCountMsg > > amTypeSet(AM_TYPE); > > ^ > > RadioCountMsg.java:60: cannot find symbol > > symbol : method amTypeSet(int) > > location: class RadioCountMsg > > amTypeSet(AM_TYPE); > > ^ > > RadioCountMsg.java:69: cannot find symbol > > symbol : method amTypeSet(int) > > location: class RadioCountMsg > > amTypeSet(AM_TYPE); > > ^ > > RadioCountMsg.java:78: cannot find symbol > > symbol : method amTypeSet(int) > > location: class RadioCountMsg > > amTypeSet(AM_TYPE); > > ^ > > RadioCountMsg.java:134: cannot find symbol > > symbol : method getUIntBEElement(int,int) > > location: class RadioCountMsg > > return (int)getUIntBEElement(offsetBits_counter(), 16); > > ^ > > RadioCountMsg.java:141: cannot find symbol > > symbol : method setUIntBEElement(int,int,int) > > location: class RadioCountMsg > > setUIntBEElement(offsetBits_counter(), 16, value); > > ^ > > 13 errors > > make: *** [RadioCountMsg.class] Error 1 > > > > ---------------------------------------------------------------------------------------------------------------------------------- > > > > With Regards > > Himanshu _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help