'CreateProcess error=2, The system cannot find the file specified (IntelliJ idea)

I'm working on an open-source application for the apache software foundation on IntelliJ idea and every time I try to run everything this error pops up

Cannot run program "E:\jdk-17.0.2\bin\java.exe" (in directory "C:\Users\afnan\AppData\Local\JetBrains\IdeaIC2021.3\compile-server"): CreateProcess error=2, The system cannot find the file specified

I have checked my path variables and there's nothing wrong with them



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source