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

How to resolve the event viewer error received while trying to start the Elasticsearch 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


Root Cause: 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

Elasticsearch Version : 7.7.0

Read more on

(post deleted by author)

I get below error when trying to start a container (in Exited status) after initial setup but don’t see a folder elasticsearch under /usr/share

Exception in thread “main” java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config/jvm.options
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)