0

Possible Duplicate:
Tool to read and display Java .class versions

I am getting this error, I suspect, because I am running a program on a Java 5 VM whereas one of my dependent classes was built with Java 6.

My question: How to do I easily go through the list of all of the jar and class files in my applications to determine the version number of each class?

There has got to be a utility for doing this.

Thanks, Peter

Community
  • 1
  • 1
Peter Carr
  • 9
  • 1
  • 1

2 Answers2

4

http://code.google.com/p/versioncheck/ might be of your help

Jayendra
  • 52,349
  • 4
  • 80
  • 90
2

You can use javap utility that can be found in bin directory under JDK installation.

javap -verbose MyTest | find "major version" if you are on Windows javap -verbose MyTest | grep "major version" if you are on Unix

AlexR
  • 114,158
  • 16
  • 130
  • 208