When i run a java file through comand prompt it says..
"Unsupported class exception error"...Bad version number in .class file.

(compilation is ok. this happens @ runtime)

i checked the versions of jdk & jre . Both are same which is 1.6.0_01.

When i compile and run the same code in Jcreator ..it compiles & run ok.

what could be the problem?

Check the version JCreator is using in its preferences and then check which "java" is on your PATH. Seemingly the javac used by JCreator is newer than the java on your PATH. That is the only thing that causes this message, is when the compiler is newer than the jvm.

IOW, check again, as however you "checked" previously was not done right.

Check the version JCreator is using in its preferences and then check which "java" is on your PATH. Seemingly the javac used by JCreator is newer than the java on your PATH. That is the only thing that causes this message, is when the compiler is newer than the jvm.

IOW, check again, as however you "checked" previously was not done right.

I can't find a way to check the java version in jcreator..Whr do I find references? !

And i assumed the java versions by thr folder names!!! I dnt think that those were changed @ installation..

For your java version simply type
java -version
for JCreator, I am sure it's documentation explains where and how to set the jdk and jre references.

OK i think i got it solved....thankx...

JCreator

Configure >> Options >> JDK Profiles