Search code examples
javaclasscompatibilityjava-6

Is there a way to tell if a class was compiled for java6?


How can I do to tell if a java class was compiled for use on a java 6 vm?

Is there an easy way?


Solution

  • It's in the class file format specification. The WP article on the subject includes the current set of version number constants.