how to check the version of jar file?

Ritesh Mengji picture Ritesh Mengji · Apr 29, 2011 · Viewed 180.6k times · Source

I am currently working on a J2ME polish application, just enhancing it. I am finding difficulties to get the exact version of the jar file. Is there any way to find the version of the jar file for the imports done in the class? I mean if you have some thing, import x.y.z; can we know the version of the jar x.y package belongs to?

Answer

Vivek picture Vivek · Apr 29, 2011

Decompress the JAR file and look for the manifest file (META-INF\MANIFEST.MF). The manifest file of JAR file might contain a version number (but not always a version is specified).