OS: Windows Server 2008 R2
ES: 6.7.1
Java: JDK Temurin-11.0.13+8
When Elasticsearch is installed as a service with "Elasticsearch-service.bat install" using the mentioned JDK, the Elasticsearch service will crash on startup with the log entry:
"The system could not find the environment option that was entered"
If I insall Elasticsearch with AdoptOpenJDK 11.0.10 the service runs fine. Even if I switch Java to 11.0.13 after service installation it still runs fine. So the service installer seems to use something from the Java directory that causes the problem.
Until now I could only reproduce this on this specific system. Running the same on other machines Windows 7, 10 another 2008 R2 worked. So just in case someone has the same problem, maybe we could find similarities.