From 2cbed4ae9690486fbe54c48903373511aa58b7ae Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 12 Jun 2023 09:43:01 +0300 Subject: [PATCH] Use JavaBinFinder when launching decompiler Fixes: #33930 --- .../io/quarkus/deployment/pkg/steps/JarResultBuildStep.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java index 628bdc4377266..1f274c63e2ad7 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java @@ -88,6 +88,7 @@ import io.quarkus.maven.dependency.ResolvedDependency; import io.quarkus.paths.PathVisit; import io.quarkus.paths.PathVisitor; +import io.quarkus.utilities.JavaBinFinder; /** * This build step builds both the thin jars and uber jars. @@ -1612,7 +1613,7 @@ public boolean decompile(Path jarToDecompile) { String fileName = jarToDecompile.getFileName().toString().substring(0, dotIndex); ProcessBuilder processBuilder = new ProcessBuilder( Arrays.asList( - "java", + JavaBinFinder.findBin(), "-jar", decompilerJar.toAbsolutePath().toString(), "-rsy=0", // synthetic methods