How should I do to find out if the java class has been compiled for use in java 6 vm?
Is there an easy way?
The specification of the class file format . The WP article on this subject includes the current set of version number constants.
On unix,
$ javap -classpath <classpath> -verbose foo.Bar \ | grep -q 'major version: 50' && echo yep || echo nope
thanks @matt b. A.
Using java decompiler