Files
reverse-engineering-anything/docs
Aditya Mahajanandmorluto 8306fba960 fix(ghidra): list compatible installed JDKs in doctor remediation (#15099)
* fix(ghidra): list compatible installed JDKs in doctor remediation

* refactor(ghidra): derive doctor JDK candidates from installation admission

Candidate discovery now consumes the installation's parsed Java
requirement, its Java-side admission (bounds, 64-bit JDK, and the
os.name/os.arch native directory), its bounded probe environment, and
its PATH and Homebrew enumeration instead of re-deriving them.

- Expose javaRequirement on the installation inspection; doctor read a
  field that did not exist, so discovery never ran.
- Search only when configuration passed and the Java probe failed.
- Enumerate macOS JavaVirtualMachines roots instead of running
  java_home, removing the unowned listing subprocess.
- Add PATH launchers on every platform, including Windows java.exe.
- Filter Homebrew formulae before selection and drop the fixed entry
  and probe caps; realpath deduplication bounds probes by distinct JDKs.
- Propagate cancellation from aborted searches and failed probes.
- Report candidates as structured compatible_jdks details.

* refactor(ghidra): share installation discovery seams with JDK candidates

* refactor(ghidra): name discovered JDKs as the Java remediation

When doctor finds compatible JDKs, the remediation names them instead of
appending them to the generic selection advice. Document the search and
details.compatible_jdks.

* refactor(ghidra): split installation inspection into owned modules

GhidraInstallation.ts gathers installation facts; the judgments and
helpers move to their owners:

- GhidraInstallationChecks: configuration, version, headless, native
  decompiler, and Java checks and their remediation.
- GhidraJavaSelection: JVM selection, probing, and Homebrew fallback,
  extracted from installationCoordinates, plus the Java helpers that
  JDK discovery shares.
- GhidraNativePlatform: native directory tables, decompiler header
  assessment, and JVM os.name/os.arch mapping.
- GhidraInstallationPathDiscovery: Ghidra launcher discovery on PATH.
- GhidraExecutableHeaderProbe now lives with its producer.

Java selection resolves the PATH launcher on every platform, so the
installation records the absolute command it probed. JDK discovery
then recognises it and does not launch the same Linux JVM twice.

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-30 02:35:29 +00:00
..
…
…

Documentation directory

Find an installation step, investigation guide, or contributor reference by task. The REA website has worked examples and product pages.

Getting started

Desktop applications

Agent environments

Native binaries

JavaScript and Electron

Browser and captured websites

Android applications

Apple applications

.NET assemblies

Firmware

HarmonyOS packages

Packages and metadata

WebAssembly

EVM contracts

Databases and recorded packets

Process capture and instrumentation

Provider setup and formats

Contracts and evidence

Development and verification

Release migrations

Signal recordings

Generated files and release records

Path Owner and update command
public/product-catalog.json Ignored contract projection; npm run docs:generate
verification/managed-conformance-*.json Ignored managed conformance projections; npm run evidence:generate
error-contract.schema.json Tracked schema from contracts; npm run docs:error-schema
user-visible-errors.csv Generated error code and category per domain and provider-owned error case; npm run docs:error-schema
releases/<version>.contributions.json Durable release contribution record; follow the release guide

Regenerate catalogs and Evidence projections from their canonical source. Release records preserve the exact commit messages and references for each release. Guides share authored images in assets/.