Could not determine Java version using executable C:\\Program Files\\Java\\jdk-10.0.1\\bin\\java.exe.
This error appeared when I tried to create a new project in Int
i had to un-install my intelliJ along with cache and all histories, remove my project... Then i re-installed intellij and downloaded my project's fresh version again.
As a last step, i had to define new sdk for my project. Previously, it was showing 2-3 SDKs. after re-installation, there were none. i added one. To add SDK in Intellij: Go to- File- Project Structure- Project Settings- Project SDK...
Added one sdk here to point to the jdk installed path.