abap-cleaner.exe needs a certain java-version (currently: 17), thats well documented and easy to optain (e.g. sapmachine ).
But it seem the only why to "provide" that jave to the abap-cleaner.exe is via path variable (also well documented) .
As there might be cases where people can not set path varaiables, I would apprechiate alternative ways to "provide" the current java.
(And also, if another, OLDER Java ist in the path, too - which will "win"? )
Those ways come to mind, any one of them would be fine:
Via abap-cleaner.ini:
-java_path
C:\tmp\sapmachine-jre-25.0.2_windows-x64_bin\sapmachine-jre-25.0.2\bin
Via sub folder:
If a sub folder "java" exist where abap-cleaner.exe is, first look if there is a javac -> if so: use this.
Via command line argument:
abap-cleaner.exe ---java_path=C:\tmp\sapmachine-jre-25.0.2_windows-x64_bin\sapmachine-jre-25.0.2\bin
Hope some of this is possible.
Joachim