# Which version of java has compiled the latest ElasticSearch on Ubuntu repos vs up on ESearch website?

**URL:** https://discuss.elastic.co/t/which-version-of-java-has-compiled-the-latest-elasticsearch-on-ubuntu-repos-vs-up-on-esearch-website/13895
**Category:** Elasticsearch
**Created:** [October 9, 2013, 11:14pm UTC](https://discuss.elastic.co/t/which-version-of-java-has-compiled-the-latest-elasticsearch-on-ubuntu-repos-vs-up-on-esearch-website/13895 "2013-10-09T23:14:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Dennis](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@Dennis](https://discuss.elastic.co/u/Dennis)
#### Post date: [October 9, 2013, 11:14pm UTC](https://discuss.elastic.co/t/which-version-of-java-has-compiled-the-latest-elasticsearch-on-ubuntu-repos-vs-up-on-esearch-website/13895/1 "2013-10-09T23:14:27Z")

</div>

I'm pretty sure I got the .deb from the Esearch site. I have been running  
down this error:

Unexpected exception, expected\<org.elasticsearch.indices.  
IndexMissingException\> but was\<org.elasticsearch.transport.  
TransportSerializationException\>

So finally followed these instructions:

> <https://stackoverflow.com/questions/3313532/what-version-of-javac-built-my-jar>

And found that at least _/org/elasticsearch/ElasticSearchException.class_(probably all of the .deb/.jar of 90.5 ESearch) was built with Java 1.6.  
I'm running 1.7 and that probably explains my error.

- 
- 

```
         *Is there a .deb/.jar compiled with Java 7 on the ESEarch 

```

site, Shay?\*

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)
#### Post date: [October 9, 2013, 11:19pm UTC](https://discuss.elastic.co/t/which-version-of-java-has-compiled-the-latest-elasticsearch-on-ubuntu-repos-vs-up-on-esearch-website/13895/2 "2013-10-09T23:19:31Z")

</div>

Serialization errors of exceptions are caused by mixing different JVM  
versions in an installation. Check if you use the same JVM at all cluster  
nodes and clients.

It does not matter what javac version compiled ES as long as the class  
files can be executed by both Java 6 and 7 (also Java 8 works).

Jörg

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:13am UTC](https://discuss.elastic.co/t/which-version-of-java-has-compiled-the-latest-elasticsearch-on-ubuntu-repos-vs-up-on-esearch-website/13895/3 "2017-07-06T02:13:09Z")

</div>


