Elasticsearch and optimize is not working

Hello people,
I have dowloaded optimize 3.9.0 latest one
I have started the camunda engine its up and running but when i started optimize-demo.bat file it goes for multiple retires and stops

here is the error log

“warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release”
“warning: usage of JAVA_HOME is deprecated, use ES_JAVA_HOME”
“warning: no-jdk distributions that do not bundle a JDK are deprecated and will be removed in a future release”
Exception in thread “main” java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
at java.base/java.lang.System.setSecurityManager(System.java:416)
at org.elasticsearch.bootstrap.Security.setSecurityManager(Security.java:99)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:70)

Is it bcus of JAVA version ?I am using java 18 !
can you please help me in this .

Hello @shoebsayyed118 ,

welcome to our forum.

For version compatibility of ES with Java, please look here:

From what I found, the preview of Optimize bundled with ES comes with ES version 7.16.2 which is not compatible with Java 18 but with Java 1.8, 11 and 17.

Please not that Optimize is not compatible with Java 1.8, so I would suggest you go for Java 17.

Depending on the OS of your local machine, there are tools to manage multiple Java versions at the same time (like jenv).

I hope this helps

Jonathan

1 Like

thank you @jonathan.lukas the info was useful and its working fine.

1 Like