I have a Jenkins Slave (A Windows PC) which has the JAVA_HOME environment variable. I updated the Java version on the Slave so I also updated the Environment Va
JAVA_HOME
Restart the slave, this fixed the issue on my configuration.