# Java 1.7 and ElasticSearch 6.5

**URL:** <https://discuss.elastic.co/t/java-1-7-and-elasticsearch-6-5/162990>\
**Category:** Elasticsearch\
**Created:** [January 4, 2019, 5:00pm UTC](https://discuss.elastic.co/t/java-1-7-and-elasticsearch-6-5/162990 "2019-01-04T17:00:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suryadip\_Nag](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Suryadip\_Nag](https://discuss.elastic.co/u/Suryadip_Nag)\
**Post date:** [January 4, 2019, 5:00pm UTC](https://discuss.elastic.co/t/java-1-7-and-elasticsearch-6-5/162990/1 "2019-01-04T17:00:01Z")

</div>

We have an application which runs on java 1.7 and we can’t upgrade now to 1.8 due to some limitations, I want to use ElasticSearch 6.5.4 Can we use java 1.7 any chance? We are gonna use the \_bulk, \_search api etc to store and retrieve data..

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [January 4, 2019, 5:13pm UTC](https://discuss.elastic.co/t/java-1-7-and-elasticsearch-6-5/162990/2 "2019-01-04T17:13:45Z")

</div>

No, the minimum required Java version for elasticsearch 6.5.4 is 8. You will have to run elasticsearch on another server where java 1.8 is allowed and connect to it using REST API.

---

<div class="post-metadata">

**Author:** ![Suryadip\_Nag](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Suryadip\_Nag](https://discuss.elastic.co/u/Suryadip_Nag)\
**Post date:** [January 5, 2019, 4:21am UTC](https://discuss.elastic.co/t/java-1-7-and-elasticsearch-6-5/162990/3 "2019-01-05T04:21:48Z")

</div>

Thanks for the clarification. But we have already installed ElasticSearch 5.5.1 which runs on Java 7 though it was mentioned in website that atleast Java 8 needs to be used. But we are using it with Java 7 and I don’t think any problem we faced till now. So will it be a problem if I forcefully use Java 7 after upgrading ES 5.5.1 to 6.5.4 ?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [January 7, 2019, 2:14pm UTC](https://discuss.elastic.co/t/java-1-7-and-elasticsearch-6-5/162990/4 "2019-01-07T14:14:20Z")

</div>

It will be a problem to use an unsupported version of Java, yes. I suspect Elasticsearch just won't start. The error message may be pretty bad though. That is a thing that we're (slowly) working on fixing.

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [January 7, 2019, 3:09pm UTC](https://discuss.elastic.co/t/java-1-7-and-elasticsearch-6-5/162990/5 "2019-01-07T15:09:46Z")

</div>

Even if you manage to make Elasticsearch start by working around version checks, nobody tests it with java 7. So, you will be basically using untested software. I don't think it's a good idea.

---

<div class="post-metadata">

**Author:** ![Suryadip\_Nag](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Suryadip\_Nag](https://discuss.elastic.co/u/Suryadip_Nag)\
**Post date:** [January 8, 2019, 5:33am UTC](https://discuss.elastic.co/t/java-1-7-and-elasticsearch-6-5/162990/6 "2019-01-08T05:33:50Z")

</div>

Got it...Thanks for your reply. Yes I checked that though we are using 1.7 for our application we are actually using openjdk8 for ES in the same host. I came to know yesterday. Many thanks.

---

<div class="post-metadata">

**Author:** ![Suryadip\_Nag](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Suryadip\_Nag](https://discuss.elastic.co/u/Suryadip_Nag)\
**Post date:** [January 8, 2019, 5:34am UTC](https://discuss.elastic.co/t/java-1-7-and-elasticsearch-6-5/162990/7 "2019-01-08T05:34:49Z")

</div>

Got it, thanks for your reply. I checked that though we are using 1.7 for our application we are actually using openjdk8 for ES in the same host. I came to know yesterday.

---

<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:** [February 5, 2019, 5:34am UTC](https://discuss.elastic.co/t/java-1-7-and-elasticsearch-6-5/162990/8 "2019-02-05T05:34:57Z")

</div>

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