# Error installing gems (\> invalid source release: 11)

**URL:** https://discuss.elastic.co/t/error-installing-gems-invalid-source-release-11/343201
**Category:** Logstash
**Created:** [September 17, 2023, 6:48pm UTC](https://discuss.elastic.co/t/error-installing-gems-invalid-source-release-11/343201 "2023-09-17T18:48:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![balakr](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@balakr](https://discuss.elastic.co/u/balakr)
#### Post date: [September 17, 2023, 6:48pm UTC](https://discuss.elastic.co/t/error-installing-gems-invalid-source-release-11/343201/1 "2023-09-17T18:48:49Z")

</div>

> Task :downloadPreviousJRuby UP-TO-DATE

> Task :downloadJRuby UP-TO-DATE  
> Download jruby-dist-9.3.10.0-bin.tar.gz

> Task :benchmark-cli:compileJava FAILED

FAILURE: Build failed with an exception.

- What went wrong:  
Execution failed for task ':benchmark-cli:compileJava'.

> invalid source release: 11

- Try:

> Run with --stacktrace option to get the stack trace.  
> Run with --info or --debug option to get more log output.

- Get more help at

BUILD FAILED in 1m 3s  
11 actionable tasks: 2 executed, 9 up-to-date

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [September 18, 2023, 9:58am UTC](https://discuss.elastic.co/t/error-installing-gems-invalid-source-release-11/343201/2 "2023-09-18T09:58:05Z")

</div>

Hi @balakr,

Can you share a bit more information about what you're trying to do? I 'm guessing that you are trying to build [@elastic/logstash](https://github.com/elastic/logstash)?

---

<div class="post-metadata">

### Author: ![balakr](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@balakr](https://discuss.elastic.co/u/balakr)
#### Post date: [September 18, 2023, 3:31pm UTC](https://discuss.elastic.co/t/error-installing-gems-invalid-source-release-11/343201/3 "2023-09-18T15:31:23Z")

</div>

i was missing the java path. setting the java path resolve this issue

---

<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: [October 16, 2023, 3:31pm UTC](https://discuss.elastic.co/t/error-installing-gems-invalid-source-release-11/343201/4 "2023-10-16T15:31:36Z")

</div>

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