How to open or run a JAR file in Windows from CMD

Likewise, this extension allows you to archive or compile programs developed through this language, with the advantage of ensuring that no type of information is lost during the process.

To open a JAR file, you need to have a Java interpreter installed. As these are the only ones capable of compiling files and then starting the execution of a specific program.

On Windows, order this task via DCM is the safest and most efficient option to get it. However, there are many ways to run these types of files.




Therefore, if you want to know the different ways to open Java compilations through the Microsoft operating system, keep reading this article.

Instructions for opening a JAR file via command prompt (CMD)

The Command Prompt is recognized as the small black window in Windows that allows you to enter “codes” or commands to run a specific configuration, task or program.

How to open or run a JAR file in Windows from CMD

As for Java, it has become a language that has crept into the majority. Probably also in all aspects that they are related to operational and visual development of devices, consoles, data centers, the Internet and more. This language made a big difference by being able to easily run on any platform. Coverage from Windows, Mac OS, free software, iOS and Android operating systems without any hassle.

Therefore, running such a file is not a problem within operating systems such as Windows, since this language is clearly part of it.

Step by step

As mentioned above, the command prompt or CMD allows you to run configurations and commands as a computer administrator. So opening a JAR file is a possibility within it.




Via the key combination “Windows+X” a window will open on the computer screen, where you can choose this useful method, to open it as "Administrator".

There are two ways to open Java compilations: the first is a direct method that is executed through the command " java '-jar c: filepath.jar ".

Of course, aspects like “C:” and “Filepath.jar” need to be changed with the exact address where the build is stored, as well as the name it is registered under on the computer. The second method requires two code requests. This is because the indications are made separately.

Therefore, it starts by opening the space where the file is stored using the command " CD/ '”, Followed by the folder address. Next, enter the name of the JAR file via " java '-jar filename.jar ". Pressing the "Enter" key will automatically open the content. This way you can open a JAR file in Windows from CMD.

Other ways to open a JAR file from Windows

If the files are compiled from a graphical environment, just press the Windows “Start” button to enter the “Windows” section.


Within the window that opens on your computer screen, you will be able to navigate to the storage path where the JAR file is located. Next, proceed to do double click on it and run it automatically.


How to open or run a JAR file in Windows from CMD

On the other hand, there is a possibility that these builds need to be done via browser. So to open it you just have to click on the link to make it work.


From a developer's perspective, make these kinds of extensions to ensure the information that will come performed within a program it is a great advantage that only Java offers.

That's why if you have one of these extensions on your computer, you now know they are offered more options to open them conveniently from Windows. Even on Android there are ways to open all types of files.

add a comment of How to open or run a JAR file in Windows from CMD
Comment sent successfully! We will review it in the next few hours.