Exception in thread "main" java.lang.UnsupportedClassversion error.

hi,

I am having the JDk and jre versions in C: drive

i am jdk version 1.5.0

but when i am running the command version it is showing 1.4.2_03 version and also i am having the oracle 10g on my system.

tried seeting classpath also but no success.

I am trying to run a simple helloworld program.while compiling there seems to be no problem..

But while running the program i am encountring the following error.

Exception in thread "main" java.lang.UnsupportedClassversion error.

can someone help me regarding this

[563 byte] By [vikingbalia] at [2007-10-3 0:10:46]
# 1
Classpath is NOT going to help. You may be able to fix this by putting the JDK bin directory as the first entry in your system's PATH variable.
atmguya at 2007-7-14 17:00:21 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...