Specified JRE Installation Does Not Exist-TOMCAT SERVER

Basically, an installation of Tomcat is running under the default JRE which can be found based on environment variables, or registry entries (on Windows) or the JRE is specified during installation (Tomcat is installed as a service). How to fix error Specified JRE installation does not exist in TOMCAT SERVER?
