Skip to content

Installing Ghidra

Ghidra's installation is refreshingly plain: there is no installer. You fetch one zip file, check it is the file its makers published, unzip it into a folder of your choosing, and run the launcher inside. Deleting the folder uninstalls it. But there is one dependency to arrange first, and it is the step everyone trips on.

First, a JDK — and the right one

Ghidra is written in Java, so it needs a Java Development Kit (JDK) on the machine before it will start. Not just any JDK: each Ghidra release names its version in the GettingStarted document inside the zip. Ghidra 12.2 requires a 64-bit JDK 25. The build machine already had JDK 21 installed for other work, and that was not enough — 12.2's own requirements say 25, so a Temurin JDK 25 (25.0.5) was fetched from Adoptium and used for every run in this guide. Free JDKs are published by several projects — Adoptium Temurin and Amazon Corretto are the two Ghidra's own document names. Match the JDK to your Ghidra release's stated requirement, not to whatever happens to be installed; the troubleshooting chapter covers the refusal you get when they disagree.

Ghidra finds Java via your JAVA_HOME environment variable first, then the PATH. Pointing JAVA_HOME at the JDK you installed for Ghidra is the reliable arrangement, because it leaves the machine's other Java untouched.

The download, checked

Releases live on the project's GitHub page (github.com/NationalSecurityAgency/ghidra, Releases). The 12.2 release, published in October 2026, is a single zip of about 570 MB — 569,712,708 bytes exactly, on the build machine. Each release's notes print the zip's SHA-256 checksum, and checking your download against it is a thirty-second habit worth forming for any tool you will point at untrusted binaries:

$ sha256sum ghidra_12.2_PUBLIC_20261016.zip
2c2cd776db3c1f6a097ba418922378ac3649cadd5e844a6f5f088ae628a7be67

That is the hash the 12.2 release notes publish, and the build machine's download matched it digit for digit. (Yours will be a later release with a different hash — compare against its notes, not this page.) On Windows the same check is Get-FileHash <file> in PowerShell; on macOS, shasum -a 256 <file>.

Unzip and run

Extract the zip anywhere you have room — the 12.2 tree occupies about 880 MB on disk. Do not extract it over an older Ghidra; each release gets its own folder, and projects can be opened by whichever version you launch.

Inside the folder:

Platform Launcher
Linux ghidraRun
macOS ghidraRun
Windows ghidraRun.bat

The command-line analyser of chapter 10 lives at support/analyzeHeadless (with a .bat twin for Windows), and a Python-driven launcher, support/pyghidraRun, sits beside it. First launch creates a per-user settings folder (preferences, and later your script and project defaults) and offers the CodeBrowser window; on macOS, Gatekeeper may ask you to confirm the first run of a downloaded app — the usual right-click → Open settles it (documented).

What Ghidra asks of the machine is modest: its own document states a minimum of 4 GB of RAM, and it ran comfortably in the build sandbox's 8 GB. Bigger binaries want more — the analysers hold the program in memory — and chapter 14 is honest about scale.

Check: installation is done when the launcher opens the project window without a Java complaint, and provable when the zip's hash matched before you unzipped it. If the launcher refuses and names Java, believe it: the JDK version is the single most common cause, and it is chapter 15's first row.