'ECLIPSE: CreateProcess error=216 - Cannot run program "\java\jdk-11.0.14\bin\javaw.exe" in directory

I just downloaded and installed latest version of eclipse. Before that I had installed jdk 11 in location: D:\learning\java\jdk-11.0.14. In eclipse, I added above location in installed JREs enter image description here

Compiler compliance level is also set to 11.

But, when I try to run a normal hello world program, it gives me below error: enter image description here

I tried to find solution online, but haven't found any solution yet.

In questions where CreateProcess error=216 is mentioned, it's coming in Android Studio.

Places where the first half of error is same, CreateProcess error is different or the reason is mentioned that system type are not compatible, but it doesn't seem to be the issue in my case. Since, my system type is 64 bit operating system, X64-based processor and setup that I downloaded from here was also for 64 bit systems.

Please let me know if I have missed any information.

Thanks in advance.



Sources

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

Source: Stack Overflow

Solution Source