Java Version of .class files

Hi,I was wondering if there is a way to check what version of java was used to compile a .class or .jar file?thanks,Rob
[147 byte] By [robert_applebya] at [2007-10-3 3:30:46]
# 1

> Hi,

>

> I was wondering if there is a way to check what

> version of java was used to compile a .class or .jar

> file?

The 'javap' tool when invoked with the '-verbose' option gives you the major and minor version of a class file.

Jim S.

Niceguy1a at 2007-7-14 21:24:42 > top of Java-index,Java Essentials,Java Programming...
# 2
Thanks for that.My next question is then:what does the major version number refer to.eg: 49 = 1.5.0_07?48 = ?47 = ?46 = ?etc...Is there a list of what JDK all the major version numbers refer to?
robert_applebya at 2007-7-14 21:24:42 > top of Java-index,Java Essentials,Java Programming...
# 3
Is there a search tool? http://www.google.com/search?q=java+class+version
ChuckBinga at 2007-7-14 21:24:42 > top of Java-index,Java Essentials,Java Programming...
# 4
Chuck,I googled for information on java class versions, found this forum, and saw your comment saying to google for java class versions!StackOverFlowError...
CarmenAlvareza at 2007-7-14 21:24:42 > top of Java-index,Java Essentials,Java Programming...