When I upload a jar file to a servlet and try reading its manifest. jarStream.getManifest() returns null..
JarInputStream jarInputStream = new JarInputStream(inputStream);
Manifest mf = jarInputStream.getManifest();
While the same jar when I read as JarFile providing an absolute path, I get the manifest of the jar..
I need to read the manifest of the jar file at runtime.. when it is uploaded..
Any suggestions are most appreciated..