Where Is Jarsigner.exe Located on My Device? A Guide for Windows, Linux, and MacOS

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 5.00 out of 5)

94% of organizations recognized in 2023 that customers wouldn’t buy from them if they didn’t secure their sensitive data. Want to boost the security of your Java apps with code signing but can’t anwer the question “where is Jarsigner located” on your Windows, Linux, or macOS device? Find it out in our quick guide

Malware is the top security concern for 42% of CIOs and network engineers polled by Opengear at the end of 2023. In January 2024, the Network Resilience Coalition, a global group of cybersecurity experts and network and tech providers, addressed this concern (and many others) in their white paper “Protecting Network Resiliency.” One of the key recommendations for vendors was to sync their software development processes with the National Institute of Standards and Technology’s (NIST’s) Secure Software Development Framework (SSDF).

Jarsigner, when used with a publicly trusted code signing certificate, enables developers to digitally sign their Java applications in a way that proves the software’s authenticity and helps to protect its integrity. This is a fundamental step explicitly endorsed by NIST SSDF.

But to sign your code, you first need to know where Jarsigner.exe is located on your Windows, Linux, or macOS device. Do you know where to find it? We assume not, since you’re reading this article. So, let’s explore it together. Learn in our step-by-step guide how to locate Jarsigner in the three most common operating systems.

Windows, Linux, MacOS: Where Is Jarsigner.exe? How Can I Find It?

Let’s imagine you’ve just purchased a code signing certificate from a trusted certificate authority (CA) and set up your secure hardware token or the CA installed it on your existing hardware security module (HSM). Now, you’re ready to sign your Java code and publish it.

Before you do this, however, you first need to find Jarsigner on your workstation. The signing tool that comes embedded in the Java Development Toolkit (JDK) used to create Java applications. If you’ve installed JDK, then it’s just a matter of locating it on your system. But if you haven’t installed JDK yet, then keep reading because we’ll also cover how to install it on each type of operating system.

Where Is Jarsigner Located on Windows?

By default, Jarsigner is always installed in JDK’s bin folder. There are two ways to check if and where this software is saved on your Windows device.

1. Use the Command Prompt

This is the fastest method. It won’t only answer the question “Where is Jarsigner.exe located on my device?” but also indicate if it isn’t installed.

  • Open a Windows command prompt as Admin. Search for “cmd” in the Windows Search bar and select Run as Administrator.
A screenshot showing a user launching Windows Command Prompt in Admin mode
Image caption: This screenshot shows the easiest way to open a Command Prompt.
  • Type the following command and hit Enter: dir “\jarsigner*” /s. If Jarsigner is installed on your machine, the command prompt will display a message similar to what you see in the screenshot below. In our example, the signing tool is located in its default folder: C:\Program Files\Java\jdk-XXXX\bin.
A screenshot showing the command to locate Jarsigner.exe on a Windows device
Image caption: Can you spot Jarsigner’s location on your device?

Does no path display when you try it? Don’t despair. Skip the next point and jump to the JDK installation instructions section.

2. Look for Jarsigner Manually Using File Explorer

  • Open Windows File Explorer by selecting its icon on the taskbar or in the Start menu.
Image caption: Clicking on the file icon will open Windows File Explorer.
  • Click on Local Disk and then on Program Files folder.
A screenshot of Windows Explorer
Image caption: Use File Explorer to navigate to your Java and JDK folders.
  • Click on Java, JDK-21 (or whatever version you’re using) and open the bin folder. Jarsigner should appear in the list of applications.
A screenshot showing the filepath where Jarsigner.exe is located on a Windows device that has JDK version 21 installed
Image caption: Where is jarsigner.exe? It’s saved in JDK’s bin folder.

Did you find it? Yeah! You can start signing your .jar files. You didn’t? That’s okay… you’ll learn how to install it in the section below.

How to Install Jarsigner.exe on Windows

If JDK (and consequently Jarsigner) aren’t installed on your machine, all you’ll have to do is follow the three steps listed in our guide “How to Install Jarsigner in Windows.”

Tip: When given the option, don’t change the default installation path (i.e., bin folder). Changing it will prevent you from asking “Where is Jarsigner.exe?” in the future.

Have installation issues? Check out Oracle’s JDK installation troubleshooting page.

Don’t forget to save Jarsigner’s location to your system by setting the path environment variable. This one-time operation will ensure that the Jarsigner command is always recognized by the command prompt, no matter which kind of Java file you’ll have to sign or verify.

  • Type “cmd” in the Windows search bar and click on Run as Administrator. The command line window will open. 
This screenshot shows a user selecting Windows Command Prompt and running as Administrator.
Image caption: This is how you open a Command Prompt as Admin.
  • Enter the following script and hit Enter: set PATH=C:\Program Files\Java\jdkXXX\bin. In this example, we’ve entered jdk-21, as it’s the version we’ve currently installed. Replace the jdkXXX with whatever version you’re using.
A screenshot showing an example filepath of where you can locate Jarsigner.exe on a Windows device
Image caption: The screenshot shows how to save the path to Jarsigner on your Windows device.

Easy peasy, am I right?

Save Up to 21% on a Java Code Signing Certificate

Digitally sign unlimited JAR files and applications for as little as $211.46/year.

Get Started

Where Is Jarsigner.exe Found on Linux Devices?

Don’t you just love versatile tools that can be used on different platforms without hassle? I do. Jarsigner is one of them. So, let’s discover where Jarsigner has found its home within the Linux OS. In this demonstration, we’re using Linux Mint. However, the same process will work on all Linux operating systems, too.

  • Open a terminal window by clicking the Applications Menu button on your desktop, or the terminal icon if you’ve already pinned it to the dash bar. Alternatively, use the CTRL + ALT + T keys.
A screenshot of a Linux Mint menu
Image caption: The screenshot shows the menu button in Linux Mint.
  • Type the following command and hit Enter: whereis jarsigner.

If you, like me, didn’t change the default installation folder, something like this will be displayed:

Where is Jarsigner located graphic: A screenshot showing the Linux command that helps you find Jarsigner.exe
Image caption: When you ask your device: “Where is Jarsigner?” the terminal will show you its pad. Here, it’s saved in the default bin folder: /usr/lib/jvm/jdk-XXXX/bin/.

Did the command not return a result (as shown in the example below)? Aha! This means JDK isn’t installed on your device. Let’s fix that issue right now.

Where is Jarsigner located graphic: A screenshot showing the Linux command won't return a location if Jarsigner isn't installed on your device
Image caption: This screenshot shows what the “whereis jarsigner” script returns when Jarsigner isn’t installed on a Linux device.

How to Install JDK (and Jarsigner) on Linux

  • Go to the Oracle website and download JDK for Linux. Make sure you pick the correct package. In this instance, we’ll show you how to install it on Linux Mint. As such, we’ll select the Debian package (.deb). Once again, the process is similar for all Debian-based Linux platforms (including Ubuntu).
Where is Jarsigner located graphic: This screenshot shows where to download the Linux package to install the Java Development Kit (JDK) containing Jarsigner.exe.
Image caption: The screenshot shows Oracle’s JDK download page for Linux.
  • Open a terminal and install JDK by entering the command below and, at the prompt, type your sudo password:
sudo dpkg -i jdk-XX_linux-x64_bin.deb

Tip: Replace jdk-xx with the name of the JDK version you’ve downloaded.

Where is Jarsigner located graphic: A screenshot of the installation process that shows the Java Development Kit (JDK) containing Jarsigner.exe unpacking on a Linux device.
Image caption: The installation process of JDK and Jarsigner has started.

Voila’! It’s done. You’ve now installed Jarsigner and JDK. Wondering where is Jarsigner located now? Run the whereis jarsigner command again to find it out.

Do you use a different Linux platform? Check out Oracle’s JDK installation guide.

How Can I Find Out Where Jarsigner Is Stored on Mac?

Oh yes, our little Jarsigner is such a versatile tool. It works perfectly on macOS, too. And so will our code signing certificate and hardware token. So, just where is Jarsigner.exe’s den located on your Mac device?

If you installed JDK using the default installation path, you’ll find it in the usual JDK bin folder. To verify it:

  • In the Dock, open a terminal as shown in this short video. (You can also follow the instructions available on the Apple support page.)
  • Type whereis jarsigner.

If Jarsigner is already available on your Mac device, the terminal will display the path to the file. Usually, something similar to:

Computer\Mac OS X\Library\Java\JavaVirtualMachine\jdkx.x.x_xxx\Contents\Home\bin\jarsigner.

No luck? Move on to the step below.

MacOS: How to Install JDK and Jarsigner

Download Java JDK for macOS from Oracle’s website and install it. This detailed video will take you through the process in no time.

If you aren’t into videos, you can also follow Oracle’s written instructions.

So, now that you have the answer to the question: “Where is Jarsigner located on my device?” for Windows, Linux and MacOS. It’s now time to start signing your Java files and give attackers a run for their money. 

Boost User Trust in Your JAR Files — Save Up to 21% on a Java Code Signing Certificate

Prove your Java apps and JAR files are legitimate by signing them with a Java code signing certificate. You can get one starting at $211.46/year.

Learn More

Final Thoughts About Where Jarsigner.exe Is Located on My Device

No matter which software you’re developing and which programming language you’re using, code signing is a crucial step. It will confirm your verified digital identity and help secure your applications against malware and unauthorized alterations to its code. 

Signing archive files like .jar, .war, .ear, and .sar will require you to install Java JDK. But now that you know the answer to the question “Where is Jarsigner located in Windows, Linux, and macOS?” you can start to take back ownership of your Java codes.

Get a trusted Java code signing certificate, sign your codes with Jarsigner.exe, and prove to your users the authenticity and integrity of your products. Interested in Visual Studio and Azure code signing? Don’t miss our next articles.