# Can't compile elasticsearch from source: error: release version 11 not supported

**URL:** https://discuss.elastic.co/t/cant-compile-elasticsearch-from-source-error-release-version-11-not-supported/266797
**Category:** Elasticsearch
**Created:** [March 10, 2021, 10:41am UTC](https://discuss.elastic.co/t/cant-compile-elasticsearch-from-source-error-release-version-11-not-supported/266797 "2021-03-10T10:41:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kazimazi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kazimazi/32/85311_2.png) [@Kazimazi](https://discuss.elastic.co/u/Kazimazi)
#### Post date: [March 10, 2021, 10:41am UTC](https://discuss.elastic.co/t/cant-compile-elasticsearch-from-source-error-release-version-11-not-supported/266797/1 "2021-03-10T10:41:00Z")

</div>

First and foremost I'm kinda new, so I might be missing something very basic.  
I'm trying to compile elasticsearch from source from master branch (060b3aadd60116e6055e3fc35f472687719b7658). I've installed openjdk15 on a new fedora server and tried to run ./gradlew localDistro as specified on github. Here is the result:

```auto
[kazimazi@localhost elasticsearch]$ ./gradlew localDistro
=======================================
Elasticsearch Build Hamster says Hello!
  Gradle Version : 6.8.3
  OS Info : Linux 5.8.15-301.fc33.x86_64 (amd64)
  JDK Version : 15 (Red Hat, Inc.)
  JAVA_HOME : /usr/lib/jvm/java-15-openjdk-15.0.2.0.7-0.rolling.fc33.x86_64
  Random Testing Seed : D18F336560027599
  In FIPS 140 mode : false
=======================================
> Task :libs:elasticsearch-plugin-classloader:compileJava FAILED
> Task :libs:elasticsearch-secure-sm:compileJava FAILED
> Task :libs:elasticsearch-geo:compileJava FAILED

> Task :libs:elasticsearch-grok:compileJava FAILED
error: error reading /home/kazimazi/.gradle/caches/modules-2/files-2.1/org.jruby.jcodings/jcodings/1.0.44/a6884b2fd8fd9a56874db05afaa22435043a2e3e/jcodings-1.0.44.jar; zip file is empty

> Task :libs:elasticsearch-dissect:compileJava FAILED
> Task :libs:elasticsearch-core:compileJava FAILED
> Task :client:rest:compileJava FAILED

FAILURE: Build completed with 7 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':libs:elasticsearch-plugin-classloader:compileJava'.
> error: release version 11 not supported

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':libs:elasticsearch-geo:compileJava'.
> error: release version 11 not supported

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':libs:elasticsearch-dissect:compileJava'.
> error: release version 11 not supported

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

4: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':libs:elasticsearch-grok:compileJava'.
> error: release version 11 not supported

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

5: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':libs:elasticsearch-secure-sm:compileJava'.
> error: release version 11 not supported

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

6: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':libs:elasticsearch-core:compileJava'.
> error: release version 11 not supported

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

7: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':client:rest:compileJava'.
> error: release version 8 not supported

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 4s
27 actionable tasks: 7 executed, 20 up-to-date

```

Could someone point me to the right direction? Thank you in advance:)

---

<div class="post-metadata">

### Author: ![Kazimazi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kazimazi/32/85311_2.png) [@Kazimazi](https://discuss.elastic.co/u/Kazimazi)
#### Post date: [March 11, 2021, 12:24pm UTC](https://discuss.elastic.co/t/cant-compile-elasticsearch-from-source-error-release-version-11-not-supported/266797/2 "2021-03-11T12:24:51Z")

</div>

What I installed wrongly was JRE and not JDK.

---

<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: [April 8, 2021, 12:25pm UTC](https://discuss.elastic.co/t/cant-compile-elasticsearch-from-source-error-release-version-11-not-supported/266797/3 "2021-04-08T12:25:45Z")

</div>

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