[Yanel-dev] Figuring out the java version number of a java class
file
Michael Wechner
michael.wechner at wyona.com
Thu Nov 19 12:42:27 CET 2009
Hi
Sometimes one has forward compatibility issues with Java. For example
because a resource is built with Java 1.6 (version 50.0), but
the system itself is being build with Java 1.5 (version 49.0)
In order to check what version a java class file has one can execute on
Linux/UNIX the following command:
file MyFile.class
and then it should say something like
MyFile.class: compiled with Java class data, version 49.0
HTH
Michi
More information about the Yanel-development
mailing list