java application Launcher error

I have installed jdk 1.5.0 Update 7 on Windows 2000 Server successfully. I have set the PATH correctly. There was no previous version of java installed. I am able to compile my source file successfully. But when I try to launch the application using 'java' from the command line, it raises an exception as - "Exception in thread main, java.lang.UnsupportedClassVersionError classname (UnsupportedVersion.major.minor 49.0)

Message was edited by:

Dodon

[479 byte] By [Dodona] at [2007-10-3 3:45:11]
# 1
Have you done a java -version? Just to be sure...
charlie.babitta at 2007-7-14 21:41:37 > top of Java-index,Core,Monitoring & Management...