Jar file is not getting executed from commandline

Hi ,

this is the weired problem i had.

i have created a executable jar file.When i double click that file it is getting executed without any problem but when i go to command prompt and tries to run this jar by using folowing command

java -jar myjar.jar

it is giving me the error as

Exception in thread "main" java.lang.UnsupportedClassVersionError:com/build/deploy/Deploy (Unsupported major.minor version 49.0)

i am not getting why it is giving me this version error.

can any body answer my question.

i am using version JDK1.5 also program is running perfesctly from ecllipse IDE.

[635 byte] By [asbn5379a] at [2007-11-26 22:30:33]
# 1
I believe that something in your system is set up so that when you double click the jar, the correct java or javaw version is being used, but when you use the command line, an older version of java is being used.
atmguya at 2007-7-10 11:35:29 > top of Java-index,Desktop,Runtime Environment...