Skip to content

Commit f20b0fa

Browse files
wmetcalfactions-userclaude
authored
Add additional Java runtime search paths to jar package (kevoreilly#2911)
* ci: Update requirements.txt * Add additional Java runtime search paths to jar package The jar analysis package only searched for Oracle JRE (Java/jre*). This adds fallback paths for Microsoft OpenJDK, Eclipse Adoptium Temurin (JDK and JRE), Oracle JDK, and the deprecated OpenJDK Chocolatey package. Oracle paths remain first to preserve existing behavior. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: GitHub Actions <action@github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent be9a41b commit f20b0fa

File tree

1 file changed

+6
-0
lines changed
  • analyzer/windows/modules/packages

1 file changed

+6
-0
lines changed

analyzer/windows/modules/packages/jar.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ class Jar(Package):
1111

1212
PATHS = [
1313
("ProgramFiles", "Java", "jre*", "bin", "java.exe"),
14+
("ProgramFiles", "Java", "jdk*", "bin", "java.exe"),
15+
("ProgramFiles", "Java", "jdk-*", "bin", "java.exe"),
16+
("ProgramFiles", "Microsoft", "jdk-*", "bin", "java.exe"),
17+
("ProgramFiles", "Eclipse Adoptium", "jdk-*", "bin", "java.exe"),
18+
("ProgramFiles", "Eclipse Adoptium", "jre-*", "bin", "java.exe"),
19+
("ProgramFiles", "OpenJDK", "jdk-*", "bin", "java.exe"),
1420
]
1521
summary = "Executes a java class using java.exe."
1622
description = f"""Uses 'java.exe -jar [path]' to run the given sample.

0 commit comments

Comments
 (0)