I am facing with the exception java.lang.UnsupportedClassVersionError. I am aware of the cause of it. However would like to know if there is any option which can tell me which JDK version was used to compile the file
As that Wikipedia article explains, the version number Jesper mentioned is contained in bytes 7 and 8 of a class file. But it shouldn't be necessary to look at the file contents: the error message should tell you which class version was found; with that number and the table Jesper posted you can determine which JDK version is needed.
Ping & DNS - updated with new look and Ping home screen widget