Elasticsearch

I have installed Elasticsearch version 8.16 with JDK 17, but I have encountered an error and I'm stuck on it:

A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000002c55fc5aaa1, pid=2344, tid=7976

JRE version: Java(TM) SE Runtime Environment (17.0.12+8) (build 17.0.12+8-LTS-286)

Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.12+8-LTS-286, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)

Problematic frame:

J 5866 c2 java.lang.String.compareTo(Ljava/lang/Object;)I java.base@17.0.12 (9 bytes) @ 0x000002c55fc5aaa1 [0x000002c55fc5a9a0+0x0000000000000101]

Core dump will be written. Default location: E:\ELK\elasticsearch-8.16.1\hs_err_pid2344.mdmp

An error report file with more information is saved as:

logs/hs_err_pid2344.log

If you would like to submit a bug report, please visit:

Crash Report

ERROR: Elasticsearch exited unexpectedly, with exit code 1
'%*' is not recognized as an internal or external command,
operable program or batch file.
|| was unexpected at this time.

note: when i install elastic in my machine it works fine , but in the server , the error accure When I install Elastic on my machine, it works fine, but an error occurs on the server.

Closed duplicate of