title: Java API to find out the JDK version a class file is compiled for?
body: <p>Are there any Java APIs to find out the JDK version a class file is compiled for? Of course there is the javap tool to find out the major version as mentioned in <a href="https://stackoverflow.com/questions/1096148/how-to-check-the-jdk-version-used-to-compile-a-class-file">here</a>. However I want to do it programmatically so that that I could warn the user to compile it for the appropriate JDK</p>