# Elasticsearch Java version requirement

**URL:** <https://discuss.elastic.co/t/elasticsearch-java-version-requirement/21244>\
**Category:** Elasticsearch\
**Created:** [December 14, 2014, 12:28am UTC](https://discuss.elastic.co/t/elasticsearch-java-version-requirement/21244 "2014-12-14T00:28:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wei\_Yuan\_Cho](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wei_yuan_cho/32/1048_2.png) [@Wei\_Yuan\_Cho](https://discuss.elastic.co/u/Wei_Yuan_Cho)\
**Post date:** [December 14, 2014, 12:28am UTC](https://discuss.elastic.co/t/elasticsearch-java-version-requirement/21244/1 "2014-12-14T00:28:25Z")

</div>

Hi

I am using Elasticsearch 1.4.1 and have read from the following links that\*  
Java 1.7.0.55\* and above are the recommended version to run Elasticsearch  
with.  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html)

> **[Java 1.7u55 is Safe for Use With Elasticsearch
	  	 | Elastic](https://www.elastic.co/blog/java-1-7u55-safe-use-elasticsearch-lucene)**
>
> This post was co-authored with Robert Muir.Apache Lucene™'s extensive randomized tests are so stressful that they also happily serve as strong test cases for the JVM itself.Over time, L...

  

> **[Elasticsearch 1.2.0 and 1.1.2 released
	  	 | Elastic](https://www.elastic.co/blog/elasticsearch-1-2-0-released)**
>
> Today, we are happy to announce the release of Elasticsearch 1.2.0, based on Lucene 4.8.1, along with a bug fix release Elasticsearch 1.1.2. You can download them and read the full change lists here: ...

From the last blog post it has been pointed out that the bug that causes  
index corruption is between 1.7.0.25 to 1.7.0.55. I would like to know  
whether _Java 1.7.0.21_ is safe to run Elasticsearch with because I have  
another software/jar that requires me to run that particular version of  
Java.

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/eccfe9c6-0fdb-413b-9298-8aa2ff18c5d9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eccfe9c6-0fdb-413b-9298-8aa2ff18c5d9%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![lesbarstow](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@lesbarstow](https://discuss.elastic.co/u/lesbarstow)\
**Post date:** [December 15, 2014, 11:04pm UTC](https://discuss.elastic.co/t/elasticsearch-java-version-requirement/21244/2 "2014-12-15T23:04:06Z")

</div>

The recommendations for Elasticsearch Java versions are pretty rigid. There  
are bugs in various JREs that affect Lucene and Elasticsearch. 1.7.0\_60  
seems to work correctly, at least for ES 1.3.4. (1.7.0\_67 does not - it  
doesn't deal with empty data fields the way the ES docs say it should.) I  
recommend 1.7.0\_60 as a good stable version, and at least at one point,  
that specific version was publicly mentioned for ES installs... I don't  
know anything about 1.8...

The first link you provide says it all: using a non-recommended JVM prior  
to 1.7.0\_55 can lead to data corruption and loss. Don't do it.

--  
Les

On Sat, Dec 13, 2014 at 5:28 PM, Wei Yuan Cho [choweiyuan@gmail.com](mailto:choweiyuan@gmail.com) wrote:

> Hi
> 
> I am using Elasticsearch 1.4.1 and have read from the following links that\*  
> Java 1.7.0.55\* and above are the recommended version to run Elasticsearch  
> with.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html)
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/blog/java-1-7u55-safe-use-elasticsearch-lucene/)
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/blog/elasticsearch-1-2-0-released/)
> 
> From the last blog post it has been pointed out that the bug that causes  
> index corruption is between 1.7.0.25 to 1.7.0.55. I would like to know  
> whether _Java 1.7.0.21_ is safe to run Elasticsearch with because I have  
> another software/jar that requires me to run that particular version of  
> Java.
> 
> Thanks
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/eccfe9c6-0fdb-413b-9298-8aa2ff18c5d9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/eccfe9c6-0fdb-413b-9298-8aa2ff18c5d9%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/eccfe9c6-0fdb-413b-9298-8aa2ff18c5d9%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/eccfe9c6-0fdb-413b-9298-8aa2ff18c5d9%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOppbCUywLZ-EpwQnsS2x2ziwYmvQFLY58wT-%3DUnG890gftmVw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOppbCUywLZ-EpwQnsS2x2ziwYmvQFLY58wT-%3DUnG890gftmVw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:43am UTC](https://discuss.elastic.co/t/elasticsearch-java-version-requirement/21244/3 "2017-07-06T00:43:38Z")

</div>


