Both these .jar or .war archives are in zip format.So there are plenty of ways to open those files to read the content. One way would be to use any tool that you use to open/extract a .zip file. Next will be to use the Jar command itself.
JAR Command
JAR (command) utility in Java can be used to open/extract these files as follows. Run following command from the folder where you need the content to be extracted by providing the path to the archive.
jar xf <path-to-file>
options:
x - extract the files
f - file to extract
Let's extract myWebApp.war and myProject.jar files.
jar xf myWebApp.war
jar xf myProject.jar
0 Response to "How to open a .war (web archive) or .jar (java archive) files"
Post a Comment