Next code should help:
JarInputStream jarStream = new JarInputStream(stream);
Manifest mf = jarStream.getManifest();
Exception handling is left for you 🙂
More Related Contents:
- include external jar when running java -jar
- How to make an executable JAR file?
- How do I read a resource file from a Java jar file?
- What is a fat JAR? [duplicate]
- Call “java -jar MyFile.jar” with additional classpath option
- Controlling Maven final name of jar artifact
- How to use classes from .jar files?
- How to write a Java program which can extract a JAR file and store its data in specified directory (location)?
- What is the maven-shade-plugin used for, and why would you want to relocate Java packages?
- Java creating .jar file
- How to use .jar files in NetBeans?
- How do I read the manifest file for a webapp running in apache tomcat?
- Eclipse: Attach source/javadoc to a library via a local property
- Modifying a file inside a jar
- Multiple runnable classes inside JAR, how to run them?
- Including Images with an executable jar
- What version of javac built my jar?
- What is the best way to avoid maven-jar?
- Can I set Java max heap size for running from a jar file?
- Finding unused jars used in an eclipse project
- How to reference JSF managed beans which are provided in a JAR file?
- Importing external .jar file to Android project [duplicate]
- NetBeans – deploying all in one jar [duplicate]
- How to includes all images in jar file using eclipse
- How do I access a config file inside the jar?
- How do I compile a java file that has jar dependencies?
- Convert .Jar to .Dmg
- Run a jar File from java program
- How to create my own java library(API)?
- How to create jar file with package structure?