如何检查jar文件的版本? [英] how to check the version of jar file?
本文介绍了如何检查jar文件的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前正在研究J2ME打磨应用程序,只是增强它。我发现很难获得jar文件的确切版本。
有没有办法找到类中导入的jar文件的版本?我的意思是如果你有一些东西,导入x.y.z;我们可以知道jar xy包所属的版本吗?
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?
推荐答案
解压缩JAR文件并查找清单文件( META-INF\MANIFEST.MF
)。 JAR文件的清单文件可能包含版本号(但并不总是指定版本)。
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).
这篇关于如何检查jar文件的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文