How To Troubleshoot Error "Could Not Evaluate jvm.options" When Trying To Start Elastic Search 7.7.0 Service

How to resolve the event viewer error received while trying to start the Elastic Search service from Services.msc as it stops automatically, specifically with version 7.7.0 and throws error in event viewer : "Elastic.ProcessHosts.Process.StartupException: Could not evaluate jvm.options" ?

After installing Elastic Search, when trying to start the service, it starts and stops a moment later and sometime fails to start.

Error logged in Event Viewer:

Service cannot be started. 
Elastic.ProcessHosts.Process.StartupException: 
  Could not evaluate jvm.options file: C:\ProgramData\Elastic\Elasticsearch\config\jvm.options 
    result: Exception in thread "main" java.nio.file.NoSuchFileException: 
      C:\ProgramData\Elastic\Elasticsearch\config\jvm.options\jvm.options

This happens when the service is not able to locate the file called jvm.options in the desired directory.

Work - Around:

  1. Create a new folder in C:\ProgramData\Elastic\Elasticsearch\config: jvm.options_
  2. Move the file jvm.options [which would be present at C:\ProgramData\Elastic\Elasticsearch\config location] into the newly created folder jvm.options_
  3. Rename folder jvm.options_ to jvm.options.
When the service is started now, it will be able to find the configuration file at below location:
C:\ProgramData\Elastic\Elasticsearch\config\jvm.options\jvm.options

Elastic Search Version : 7.7.0

Read more on