REA JDK requirements (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

REA does not ship a JDK. For Ghidra it requires the 64-bit full JDK bounds declared by your Ghidra 12.1.x install (application.java.min / application.java.max). Upstream verifies the bridge with Ghidra 12.1.4 + JDK 21. JADX static APK analysis likewise needs a full JDK plus headless JADX.

Export absolute paths

export GHIDRA_INSTALL_DIR=/absolute/path/to/ghidra_12.1.4_PUBLIC
export JAVA_HOME=/absolute/path/to/jdk-21   # optional if java/javac already correct on PATH
npx -y rea-agents@latest doctor --provider ghidra --json

Windows PowerShell shape (from upstream examples):

$env:JAVA_HOME = "C:\Program Files\Java\jdk-21"

macOS Homebrew reminder

Homebrew’s openjdk is keg-only. Typical homes:

  • /opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home
  • /usr/local/opt/openjdk/libexec/openjdk.jdk/Contents/Home

REA does not auto-pick another installed JDK for you.

Architecture matching

Doctor checks that the JVM’s reported os.arch / os.name map to the same native decompiler directory as the host. An x86_64 JDK under Rosetta on Apple silicon can fail even when the version number looks fine. Select a matching JDK via JAVA_HOME.

RepoRead is unofficial. Prefer installation.md when bounds change.

FAQ

Is a JRE enough?

No. Doctor checks for a 64-bit full JDK including javac. JRE-only installs fail readiness.

Which Ghidra / JDK pair is verified upstream?

Docs state the bridge is verified with Ghidra 12.1.4 and JDK 21; Ghidra 12.1.x declares its own java min/max.

Homebrew OpenJDK on macOS?

OpenJDK is keg-only — point JAVA_HOME at libexec/openjdk.jdk/Contents/Home under the formula prefix.

Why does Rosetta matter?

A JDK running under emulation can disagree with the native decompiler directory Ghidra expects. Match JVM os.arch to the host decompiler.

Does JADX need the same JDK story?

README Android row calls for headless JADX and a full JDK on supported hosts. Keep JAVA_HOME consistent for both engines when co-installed.

Sources