Can't install version 7.12 on Windows 10 Pro, getting this error:
Error: Could not find or load main class org.elasticsearch.tools.java_version_checker.JavaVersionChecker
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.tools.java_version_checker.JavaVersionChecker
I didn't install separate Java as the zip package has it inside. According to the documentation there is no need to do anything special. Just download the zip, extract it and run the bat file.
But running the elasticsearch.bat file from the "C:\elasticsearch-7.12.0\bin" writes the above errors.
Also, I DO NOT have JAVA_HOME or ES_JAVA_HOME variables (as in the documentation was not mentioned to set them up).
P.S. I saw that similar questions in past were closed without a single comment. Hope your support team works better today.
C:\ElasticSearch\7.12\elasticsearch-7.12.0\bin>elasticsearch.bat
Error: Could not find or load main class org.elasticsearch.tools.java_version_checker.JavaVersionChecker
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.tools.java_version_checker.JavaVersionChecker
C:\ElasticSearch\7.12\elasticsearch-7.12.0\bin>elasticsearch.bat
"C:\ElasticSearch\7.12\elasticsearch-7.12.0\jdk\bin\java.exe" -cp "C:\ElasticSearch\7.12\elasticsearch-7.12.0\lib\*" "org.elasticsearch.tools.java_version_checker.JavaVersionChecker"
Error: Could not find or load main class org.elasticsearch.tools.java_version_checker.JavaVersionChecker
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.tools.java_version_checker.JavaVersionChecker
This shows where the JAVA was found.
The C:\ElasticSearch\7.12\elasticsearch-7.12.0 folder is unzipped downloaded archive without any modifications.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.