I had the same problem. When I start my AEM as a Windows service, I was getting the above-mentioned error. . I had the change the Jvm entry in the registry for the key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\aem6520\Parameters\Java aem6520 is the name ...