NetBeans “Cannot locate java installation in specified jdkhome”?

I came across this situation when I first installed Java 11 and tried with that, due to some reasons I uninstalled Java 11 (JDK 11) and...