When I run zap.bat in windows terminal while I am in the folder C:\Program Files\ZAP\Zed Attack Proxy it works fine. However, I added C:\Program Files\ZAP\Zed Attack Proxy to PATH, when I switch he fire a new terminal and just type ZAP.bat I get
C:\.......ts\PS\Scripts>C:\PROGRA~1\Java\jdk-17.0.1\bin\java -Xmx512m -jar zap-2.16.1.jar
Error: Unable to access jarfile zap-2.16.1.jar
I switched to bash terminal, tried the same command I got
$ zap.sh
Exiting: ZAP requires a minimum of Java 17 to run, found 11.0.16.1
If I understand well the docs, java 11 is enough so why 2 different behavior while I am inside the zap folder and not in the 2nd case? Than ks for your help