# Switching to JDK 7?

**URL:** <https://discuss.elastic.co/t/switching-to-jdk-7/7355>\
**Category:** Elasticsearch\
**Created:** [April 16, 2012, 5:29pm UTC](https://discuss.elastic.co/t/switching-to-jdk-7/7355 "2012-04-16T17:29:34Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [April 16, 2012, 5:29pm UTC](https://discuss.elastic.co/t/switching-to-jdk-7/7355/1 "2012-04-16T17:29:34Z")

</div>

Hi,

in the light of

"In addition to Java 5 and Java 6, this release has now full Java 7 support  
(minimum JDK 7u1 required)."

[http://mail-archives.apache.org/mod\_mbox/www-announce/201204.mbox/\<CAOdYfZVLVvs392LDt5X0XvxT3V+a0Y+ORwNGfJpjBuBC0gFSAQ@mail.gmail.com\>](http://mail-archives.apache.org/mod_mbox/www-announce/201204.mbox/%3CCAOdYfZVLVvs392LDt5X0XvxT3V+a0Y+ORwNGfJpjBuBC0gFSAQ@mail.gmail.com%3E)

I would like to see Elasticsearch supporting JDK 7.

Any known obstacles?

Cheers,

Jörg

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 17, 2012, 1:25pm UTC](https://discuss.elastic.co/t/switching-to-jdk-7/7355/2 "2012-04-17T13:25:55Z")

</div>

Elasticsearch works well under Java 7 (and also Lucene 3.5, not just Lucene  
3.6).

On Mon, Apr 16, 2012 at 8:29 PM, Jörg Prante [joergprante@gmail.com](mailto:joergprante@gmail.com) wrote:

> Hi,
> 
> in the light of
> 
> "In addition to Java 5 and Java 6, this release has now full Java 7  
> support (minimum JDK 7u1 required)."
> 
> [http://mail-archives.apache.org/mod\_mbox/www-announce/201204.mbox/\<CAOdYfZVLVvs392LDt5X0XvxT3V+a0Y+ORwNGfJpjBuBC0gFSAQ@mail.gmail.com\>](http://mail-archives.apache.org/mod_mbox/www-announce/201204.mbox/%3CCAOdYfZVLVvs392LDt5X0XvxT3V+a0Y+ORwNGfJpjBuBC0gFSAQ@mail.gmail.com%3E)
> 
> I would like to see Elasticsearch supporting JDK 7.
> 
> Any known obstacles?
> 
> Cheers,
> 
> Jörg

---

<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:** [April 17, 2012, 2:03pm UTC](https://discuss.elastic.co/t/switching-to-jdk-7/7355/3 "2012-04-17T14:03:57Z")

</div>

Hi,

sorry for being unclear, I'd like to know if the Elasticsearch build - not  
running Elasticsearch - is ready for being compiled with source and target  
of JDK 7 ? The pom.xml states "1.6" in the maven compiler plugin. JDK 7 has  
some nice benefits like NIO.2, jsr166y, InvokeDynamic, Unicode 6.0.

Jörg

On Tuesday, April 17, 2012 3:25:55 PM UTC+2, kimchy wrote:

> Elasticsearch works well under Java 7 (and also Lucene 3.5, not just  
> Lucene 3.6).
> 
> On Mon, Apr 16, 2012 at 8:29 PM, Jörg Prante [joergprante@gmail.com](mailto:joergprante@gmail.com)wrote:
> 
> > Hi,
> > 
> > in the light of
> > 
> > "In addition to Java 5 and Java 6, this release has now full Java 7  
> > support (minimum JDK 7u1 required)."
> > 
> > [http://mail-archives.apache.org/mod\_mbox/www-announce/201204.mbox/\<CAOdYfZVLVvs392LDt5X0XvxT3V+a0Y+ORwNGfJpjBuBC0gFSAQ@mail.gmail.com\>](http://mail-archives.apache.org/mod_mbox/www-announce/201204.mbox/%3CCAOdYfZVLVvs392LDt5X0XvxT3V+a0Y+ORwNGfJpjBuBC0gFSAQ@mail.gmail.com%3E)
> > 
> > I would like to see Elasticsearch supporting JDK 7.
> > 
> > Any known obstacles?
> > 
> > Cheers,
> > 
> > Jörg

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 17, 2012, 2:11pm UTC](https://discuss.elastic.co/t/switching-to-jdk-7/7355/4 "2012-04-17T14:11:40Z")

</div>

There isn't really a need to compile elasticsearch under 1.7. Where  
applicable, we use Java 7 constructs, for example jsr166y is already used  
in elasticsearch (as an embedded lib).

On Tue, Apr 17, 2012 at 5:03 PM, Jörg Prante [joergprante@gmail.com](mailto:joergprante@gmail.com) wrote:

> Hi,
> 
> sorry for being unclear, I'd like to know if the Elasticsearch build - not  
> running Elasticsearch - is ready for being compiled with source and target  
> of JDK 7 ? The pom.xml states "1.6" in the maven compiler plugin. JDK 7 has  
> some nice benefits like NIO.2, jsr166y, InvokeDynamic, Unicode 6.0.
> 
> Jörg
> 
> On Tuesday, April 17, 2012 3:25:55 PM UTC+2, kimchy wrote:
> 
> > Elasticsearch works well under Java 7 (and also Lucene 3.5, not just  
> > Lucene 3.6).
> > 
> > On Mon, Apr 16, 2012 at 8:29 PM, Jörg Prante [joergprante@gmail.com](mailto:joergprante@gmail.com)wrote:
> > 
> > > Hi,
> > > 
> > > in the light of
> > > 
> > > "In addition to Java 5 and Java 6, this release has now full Java 7  
> > > support (minimum JDK 7u1 required)."
> > > 
> > > [http://mail-archives.apache](http://mail-archives.apache).\*\*org/mod\_mbox/www-announce/\*_201204.mbox/%_  
> > > \*3CCAOdYfZVLVvs392LDt5X0XvxT3V+ **a0Y+ORwNGfJpjBuBC0gFSAQ@mail.**  
> > > [gmail.com](http://gmail.com)%3E[http://mail-archives.apache.org/mod\_mbox/www-announce/201204.mbox/\<CAOdYfZVLVvs392LDt5X0XvxT3V+a0Y+ORwNGfJpjBuBC0gFSAQ@mail.gmail.com\>](http://mail-archives.apache.org/mod_mbox/www-announce/201204.mbox/%3CCAOdYfZVLVvs392LDt5X0XvxT3V+a0Y+ORwNGfJpjBuBC0gFSAQ@mail.gmail.com%3E)
> > > 
> > > I would like to see Elasticsearch supporting JDK 7.
> > > 
> > > Any known obstacles?
> > > 
> > > Cheers,
> > > 
> > > Jörg

---

<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, 3:32am UTC](https://discuss.elastic.co/t/switching-to-jdk-7/7355/5 "2017-07-06T03:32:13Z")

</div>


