# org.elasticsearch.tools.launchers.JavaVersionChecker

**URL:** <https://discuss.elastic.co/t/org-elasticsearch-tools-launchers-javaversionchecker/147179>\
**Category:** Elasticsearch\
**Created:** [September 4, 2018, 9:50am UTC](https://discuss.elastic.co/t/org-elasticsearch-tools-launchers-javaversionchecker/147179 "2018-09-04T09:50:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![akuma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akuma/32/35127_2.png) [@akuma](https://discuss.elastic.co/u/akuma)\
**Post date:** [September 4, 2018, 9:50am UTC](https://discuss.elastic.co/t/org-elasticsearch-tools-launchers-javaversionchecker/147179/1 "2018-09-04T09:50:19Z")

</div>

Hello, I have a question.  
My ElasticSearch version: 6.2.4.  
os: centos7.  
java 1.8.  
Prompt when I run: org.elasticsearch.tools.launchers.JavaVersionChecker.  
Please help me.

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [September 4, 2018, 6:36pm UTC](https://discuss.elastic.co/t/org-elasticsearch-tools-launchers-javaversionchecker/147179/2 "2018-09-04T18:36:38Z")

</div>

I don't see an actual question in your post? JavaVersionChecker is something used internally by `bin/elasticsearch` to ensure the minimum java version (8) is being used, and produce a nice error message instead of "incompatible class version" that one would get when trying to run java 8 class files on java 7 or below.

---

<div class="post-metadata">

**Author:** ![akuma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akuma/32/35127_2.png) [@akuma](https://discuss.elastic.co/u/akuma)\
**Post date:** [September 5, 2018, 1:22am UTC](https://discuss.elastic.co/t/org-elasticsearch-tools-launchers-javaversionchecker/147179/3 "2018-09-05T01:22:37Z")

</div>

Thank you for your answer.I believe my java version is okay, it's version 1.8, It also works well before it is restarted and is stuck in JavaVersionChecker. Will there be other reasons for this mistake?

---

<div class="post-metadata">

**Author:** ![akuma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akuma/32/35127_2.png) [@akuma](https://discuss.elastic.co/u/akuma)\
**Post date:** [September 5, 2018, 1:29am UTC](https://discuss.elastic.co/t/org-elasticsearch-tools-launchers-javaversionchecker/147179/4 "2018-09-05T01:29:52Z")

</div>

At first I thought it was a question of java version or Linux System permissions, but after many attempts, it didn't get better.

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [September 5, 2018, 3:14pm UTC](https://discuss.elastic.co/t/org-elasticsearch-tools-launchers-javaversionchecker/147179/5 "2018-09-05T15:14:35Z")

</div>

Can you please show what error message you get? It is difficult to diagnose without seeing the actual output you are seeing. I will say, if java version checker is failing, then likely the java version you think you are using is not actually what is being used. Double check what you have in JAVA\_HOME, as well as your PATH.

---

<div class="post-metadata">

**Author:** ![akuma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akuma/32/35127_2.png) [@akuma](https://discuss.elastic.co/u/akuma)\
**Post date:** [September 5, 2018, 3:46pm UTC](https://discuss.elastic.co/t/org-elasticsearch-tools-launchers-javaversionchecker/147179/6 "2018-09-05T15:46:21Z")

</div>

The error message I got "org.elasticsearch.tools.launchers.JavaVersionChecker". There is no more.Thank you again.

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [September 5, 2018, 4:49pm UTC](https://discuss.elastic.co/t/org-elasticsearch-tools-launchers-javaversionchecker/147179/7 "2018-09-05T16:49:13Z")

</div>

Can you please add your entire output here, as well as the command you use to run elasticsearch.

---

<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:** [October 3, 2018, 4:49pm UTC](https://discuss.elastic.co/t/org-elasticsearch-tools-launchers-javaversionchecker/147179/8 "2018-10-03T16:49:14Z")

</div>

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