I've just downloaded Elasticsearch 7.16.2 and installed it as a service under Windows Server 2019. Previously I had 7.10.2. running without any issues.
If I'm trying to start the service, it fails with following error:
[2021-12-22 15:33:27] [info] [ 3612] Starting service... [2021-12-22 15:33:27] [error] [ 4972] CreateJavaVM Failed [2021-12-22 15:33:27] [error] [ 4972] The system cannot find the file specified. [2021-12-22 15:33:27] [error] [ 3612] Failed to start Java [2021-12-22 15:33:27] [error] [ 3612] ServiceStart returned 4
I've tried the bundled JDK and OpenJDK 15.0.2, both produce the same result.
Whats going on? It is just the extracted zip file, no config changes or what so ever.
Tried to start the Elasticsearch.bat directly and getting follwing error:
Error: Could not find or load main class Files\elasticsearch-7.10.2\tmp Caused by: java.lang.ClassNotFoundException: Files\elasticsearch-7.10.2\tmp
SO somehow this is related to the previous 7.10.2 installation, but I've no idea how to get rid of that?