What does

```sh
.\elasticsearch.exe --debug-env
```

output on the VM? it'll be something like

```text
-------------
Elasticsearch
-------------
ES_HOME (in order of precedence)
- HomeDirectoryProcessVariable =
- HomeDirectoryUserVariable =
- HomeDirectoryMachineVariable = C:\Program Files\Elastic\Elasticsearch\6.3.1\
- From executable location = C:\Program Files\Elastic\Elasticsearch\6.3.1
ES_PATH_CONF (in order of precedence)
- ConfigDirectoryProcessVariable =
- ConfigDirectoryUserVariable =
- ConfigDirectoryMachineVariable = C:\ProgramData\Elastic\Elasticsearch\config
- Fallback to ES_HOME = C:\Program Files\Elastic\Elasticsearch\6.3.1\config

-------------
Java
-------------
Java paths
- current = C:\Program Files\Java\jre1.8.0_162\bin\java.exe
Java Candidates (in order of precedence)
- JavaHomeProcessVariable = C:\Program Files\Java\jre1.8.0_162
- JavaHomeUserVariable =
- JavaHomeMachineVariable = C:\Program Files\Java\jre1.8.0_162
- JdkRegistry64 = C:\Program Files\Java\jdk1.8.0_162
- JreRegistry64 = C:\Program Files\Java\jre1.8.0_162
- JdkRegistry32 =
- JreRegistry32 =
Java checks
- Using32BitJava = False
- JAVA_HOME as machine and user variable = False
```

---