furqanms,
Your problem is a common one in the Java world. I myself had that problem when I was developing with Java for the first time. Anyway, it has been a long time since your post, but I'm replying here for the reference of other people who might come across. :)
The UnsupportedClassVersionError occurs when you re-compile your Java files without deleting the previous .class files. This does not happen always (because javac is supposed to update the .class files when the source files are updated) but this happens sometimes. If you delete all .class files and then recompile it, it will work.
Good Luck.
- Yohan.
|