# Version 7.12 does not work on Windows

**URL:** <https://discuss.elastic.co/t/version-7-12-does-not-work-on-windows/271203>\
**Category:** Elasticsearch\
**Tags:** windows\
**Created:** [April 25, 2021, 8:19pm UTC](https://discuss.elastic.co/t/version-7-12-does-not-work-on-windows/271203 "2021-04-25T20:19:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrey\_Tomilin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_tomilin/32/77563_2.png) [@Andrey\_Tomilin](https://discuss.elastic.co/u/Andrey_Tomilin)\
**Post date:** [April 25, 2021, 8:19pm UTC](https://discuss.elastic.co/t/version-7-12-does-not-work-on-windows/271203/1 "2021-04-25T20:19:08Z")

</div>

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](https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html) 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.

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 27, 2021, 12:41am UTC](https://discuss.elastic.co/t/version-7-12-does-not-work-on-windows/271203/2 "2021-04-27T00:41:21Z")

</div>

> [@Andrey\_Tomilin](#):
>
> getting this error

Where exactly are you getting this error?

---

<div class="post-metadata">

**Author:** ![Andrey\_Tomilin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_tomilin/32/77563_2.png) [@Andrey\_Tomilin](https://discuss.elastic.co/u/Andrey_Tomilin)\
**Post date:** [May 1, 2021, 7:47pm UTC](https://discuss.elastic.co/t/version-7-12-does-not-work-on-windows/271203/3 "2021-05-01T19:47:46Z")

</div>

In CMD, when running the elasticsearch.bat

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 2, 2021, 9:58pm UTC](https://discuss.elastic.co/t/version-7-12-does-not-work-on-windows/271203/4 "2021-05-02T21:58:45Z")

</div>

Can you post the entire command you are running as well as any output after it?

---

<div class="post-metadata">

**Author:** ![Andrey\_Tomilin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_tomilin/32/77563_2.png) [@Andrey\_Tomilin](https://discuss.elastic.co/u/Andrey_Tomilin)\
**Post date:** [May 4, 2021, 7:44pm UTC](https://discuss.elastic.co/t/version-7-12-does-not-work-on-windows/271203/5 "2021-05-04T19:44:10Z")

</div>

```
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
```

---

<div class="post-metadata">

**Author:** ![Andrey\_Tomilin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_tomilin/32/77563_2.png) [@Andrey\_Tomilin](https://discuss.elastic.co/u/Andrey_Tomilin)\
**Post date:** [May 4, 2021, 7:51pm UTC](https://discuss.elastic.co/t/version-7-12-does-not-work-on-windows/271203/6 "2021-05-04T19:51:21Z")

</div>

Also, found on some forum to add this line in the elasticsearch-env.bat file:

```
echo %JAVA% -cp "%ES_CLASSPATH%" "org.elasticsearch.tools.java_version_checker.JavaVersionChecker"

```

Thus the whole result is:

```
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.

---

<div class="post-metadata">

**Author:** ![Andrey\_Tomilin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_tomilin/32/77563_2.png) [@Andrey\_Tomilin](https://discuss.elastic.co/u/Andrey_Tomilin)\
**Post date:** [May 10, 2021, 12:40pm UTC](https://discuss.elastic.co/t/version-7-12-does-not-work-on-windows/271203/7 "2021-05-10T12:40:29Z")

</div>

@warkolm , please come back! 🙂

---

<div class="post-metadata">

**Author:** ![Andrey\_Tomilin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_tomilin/32/77563_2.png) [@Andrey\_Tomilin](https://discuss.elastic.co/u/Andrey_Tomilin)\
**Post date:** [May 26, 2021, 7:24am UTC](https://discuss.elastic.co/t/version-7-12-does-not-work-on-windows/271203/8 "2021-05-26T07:24:52Z")

</div>

I see that the problem was resolved with version 7.13.0. Strange that didn't see anything about it in the release notes.

Anyway thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 23, 2021, 7:24am UTC](https://discuss.elastic.co/t/version-7-12-does-not-work-on-windows/271203/9 "2021-06-23T07:24:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
