James Jefferies and ShedCode Ltd

The world of James and ShedCode

How Do I Find the Version of Java My Class Was Compiled Against?

Is a very good question and something I couldn’t quite remember from the mists of time. However, there is a utility to help…

1
javap -verbose Classname

where Classname is your class, will give you loads of information, including major and minor java version numbers. Handy huh?