If you worked with large enterprise application which has 10 nightly builds, 20 incremental builds with two dozens of QE environment and 100 production setup with more than 3 managers managing you, then I’m sure you would have definitely heard people screaming  “We have got a deployment blocker” and the error goes like below,


java.lang.UnsupportedClassVersionError: : Unsupported major.minor version 52.0

If you are the one developer who love Java exception reporting and stack trace I’m sure you will laugh when the build is not generated by you (hot fixes).

If you ever get into such error here is the quick steps to figure out the version details.  Open the class file in PSPad (Any Hex Editor or use dump in Linux) and reference the image given below.

 

Java_Class_HexDump
Java_Class_HexDump

If it is JAR, you can open any one of the class file from the JAR. For more detailed about Java Class File Format, refer here

Leave a Reply

Your email address will not be published.

WP2Social Auto Publish Powered By : XYZScripts.com