Files
reverse-engineering-anything/src
记得吃中饭andVincent Koc d27e7284c7 fix(providers): resolve a PATH-only JDK for Windows Ghidra (#14654)
* fix(providers): resolve a PATH-only JDK for Windows Ghidra

Windows Ghidra admission fell back to a bare `java.exe` whenever JAVA_HOME was
unset. The owned-process launcher admits only absolute executable paths, so the
probe never started and the provider stayed `runtime_unavailable` with Win32 87,
even though the JDK on PATH met Ghidra's requirement.

Resolve `java.exe` through the caller's PATH on Windows, skipping relative
entries, and keep the bare command only when no absolute launcher exists. The
JADX provider already resolves the same case this way.

* test(providers): prove a relative PATH entry cannot select Java

* test(ghidra): match Windows launcher paths in negative control

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-11-26 18:37:24 +08:00
..
…
…
…
…
…
…
…
…