Maven build - Given path to java executor does not exist "C:\somepath\jdk\zulujdk-11\bin\java"

37 Views Asked by At

I am building my project using maven in Intellij. I am getting the following error :

Given path to java executor does not exist "C:\somepath\jdk\zulujdk-11\bin\java"

Don't pay much attention to the exact path. My issue is that I was using this path previously but now, I have changed it to jdk 17 in all configurations in intellij and environment variables. Yet I am getting this error. I have changed the configurations in Intellij in,

  1. Under project structure -> project. Both SDK and language level are at 17.
  2. Under modules , all the modules are using the project SDK.
  3. In settings, Under Build Execution and Deployment -> Build Tools -> Maven , then under Importing and Runner, both are using the project SDK.

I have seen almost everywhere and cannot seem to find where that previous path is being mentioned. I have invalidated cache and restarted the IDE as well. Please help, if I need to change the settings some where else or any other changes I need to do.

0

There are 0 best solutions below