[HELP] Android\arm64\gradle\rungradle.bat ERROR HELL

Can you help me with a few questions? Can you explain what I am replacing in the sdkmanager.bat with --licenses to accept all , and is that exactly what I type?
On the Java line, if I install that new Java in Program Files it gives me an error. If I am using 4.26 how do I adjust to use this new Java and have it accept it.