How to find the version of a jar file?

Sachini Dissanayaka
1 min readSep 20, 2021

--

Following are the steps you can follow to find out the version of a jar file

Method 1

Right-click on the executable jar file.

If you are using WinRAR you can see the “Open with WinRAR” option. Just click on it.

Then unzip the folder and check META-INF/MANIFEST.MF file. You can open this file using a text editor (E.g: Notepad++)

This MANIFEST.MF file contains all the metadata related to your jar file. It is a list of keys and values.

Manifest-Version: 1.0
Created-By: Maven Archiver 3.5.0
Build-Jdk-Spec: 16
Main-Class: com.client.ChatClient

Method 2

Here you need to install some version of Bash (E.g.- git bash)

Then open git bash in the directory of your jar file located

Then run the following command

unzip -p cl.jar META-INF/MANIFEST.MF

Expected output:

Manifest-Version: 1.0
Created-By: Maven Archiver 3.5.0
Build-Jdk-Spec: 16
Main-Class: com.client.ChatClient

--

--

Sachini Dissanayaka
Sachini Dissanayaka

Written by Sachini Dissanayaka

SDE | Master's student at the University of York in Computer Science with Artificial Intelligence

No responses yet