reading MANIFEST.MF file from jar file using JAVA
I would suggest to make following:
Package aPackage = MyClassName.class.getPackage();
String implementationVersion = aPackage.getImplementationVersion();
String implementationVendor = aPackage.getImplementationVendor();
Where MyClassName can be any class from your application written by you.
Next code should help:
JarInputStream jarStream = new JarInputStream(stream);
Manifest mf = jarStream.getManifest();
Exception handling is left for you :)