[https://stackoverflow.com/a/79050668/26586229]2 check out this use java 17 not with latest version and get installed the python,java,pyspark and hadoop(https://github.com/steveloughran/winutils/tree/master) with link.
hope it works!!