Elastic search plugin error while installing analysis-icu:
$bin/elasticsearch-plugin install analysis-icu
Error: Could not find or load main class org.elasticsearch.plugins.PluginCli
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.plugins.PluginCli
I set ES_CLASSPATH="/elasticsearch-7.12.0/lib/*" in elasticsearch-env as mentioned in:java - Elasticsearch: Could not find or load main class org.elasticsearch.tools.launchers.JavaVersionChecker - Stack Overflow.
I am using WINDOWS 10 and java 16 installed and set environment variable to:"C:\Program Files\Java\jdk-16\bin".