Unsupportedclassversion error

Hi Friends,

i installed java 1.5 in my system. The problem is i've created a java file in my personal folder its compiling fine but if i try to run it i am not able to do and giving error like Unsupportedclassversion. But if i compile and run a program from the bin directory means i am able to do it.

Can anyone help me to rectify this problem please/

Thanks in advance.

[397 byte] By [smr_rashmya] at [2007-11-27 11:53:07]
# 1

Make sure you are compiling and running your program with the same Java version.

Completly remove the older version of Java from the machine and try with the new one..

my_foruma at 2007-7-29 18:48:29 > top of Java-index,Java Essentials,New To Java...
# 2

yes i removed the entire java from my system and installed it again.

yes i gave the cmd like java -version its giveing 1.5.0.05...

one more thing: javac is working from any directry without set the path.

smr_rashmya at 2007-7-29 18:48:29 > top of Java-index,Java Essentials,New To Java...
# 3

Could you recompile your progaram and try again..

my_foruma at 2007-7-29 18:48:29 > top of Java-index,Java Essentials,New To Java...