elasticsearch-1.6 Could not initialize class org.elasticsearch.monitor.jvm.JvmInfo when connecting to its docker container
It seems like you are using jdk 11 or higher to run your application with very old Elasticsearch client (1.6.0). I tried to establish the connection using the client by jdk 8 and I got success. Also I tried jdk 11 and got the same error. I hope it will help you.