# Windows install : jruby not found

**URL:** <https://discuss.elastic.co/t/windows-install-jruby-not-found/353487>\
**Category:** Logstash\
**Created:** [February 16, 2024, 5:29pm UTC](https://discuss.elastic.co/t/windows-install-jruby-not-found/353487 "2024-02-16T17:29:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jim.patterson](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jim.patterson](https://discuss.elastic.co/u/jim.patterson)\
**Post date:** [February 16, 2024, 5:29pm UTC](https://discuss.elastic.co/t/windows-install-jruby-not-found/353487/1 "2024-02-16T17:29:12Z")

</div>

The error message I am getting:  
"could not find jruby in D:\elastic\_stack\logstash-8.12.0\vendor\jruby"  
I've opened and extracted the logstash-8.12.0-windows-x86\_64 file with 7zip, I didn't use windows default zip file extraction. Here is the listing of my D:\elastic\_stack\logstash-8.12.0\vendor directory:

```auto
    Directory: D:\elastic_stack\logstash-8.12.0\vendor

Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2/16/2024 8:19 AM bundle
d----- 2/16/2024 9:54 AM jruby

PS D:\elastic_stack\logstash-8.12.0\vendor>

There clearly is a jruby directory and here is the directory listing of it:

    Directory: D:\elastic_stack\logstash-8.12.0\vendor\jruby

Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2/16/2024 9:52 AM 3.1.0

under the 3.1.0 directory I see the following: 
    Directory: D:\elastic_stack\logstash-8.12.0\vendor\jruby\3.1.0

Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2/16/2024 9:51 AM bin
d----- 1/10/2024 10:46 AM build_info
d----- 1/10/2024 10:46 AM cache
d----- 1/10/2024 10:46 AM doc
d----- 1/10/2024 10:46 AM extensions
d----- 2/16/2024 9:52 AM gems
d----- 2/16/2024 9:52 AM plugins
d----- 2/16/2024 9:52 AM specifications

```

In addition I have tried moving the contents of the 3.1.0 directory up one level directly under the jruby directory eliminating the 3.1.0 directory but its still not finding it? and I am still getting the same error message?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 16, 2024, 6:01pm UTC](https://discuss.elastic.co/t/windows-install-jruby-not-found/353487/2 "2024-02-16T18:01:15Z")

</div>

The error message is produced by [setup.bat](https://github.com/elastic/logstash/blob/e5ca8601bacbde892ffa8540b885e818504ff743/bin/setup.bat#L64). You should be able to make a copy of that and edit it to set echo on, so that you can see exactly what it is testing.

In the past there have been [issues](https://github.com/elastic/logstash/issues/8901) with spaces in path names and incorrect quoting, but I thought those were fixed.

---

<div class="post-metadata">

**Author:** ![jim.patterson](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jim.patterson](https://discuss.elastic.co/u/jim.patterson)\
**Post date:** [February 16, 2024, 6:58pm UTC](https://discuss.elastic.co/t/windows-install-jruby-not-found/353487/3 "2024-02-16T18:58:26Z")

</div>

Thank you!! turns out my 7zip was a few years old and didn't actually unpack the whole package so the jruby.exe was actually missing. I may have to go back and redo my Elastic Search and Kibana directories too.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [February 16, 2024, 7:17pm UTC](https://discuss.elastic.co/t/windows-install-jruby-not-found/353487/4 "2024-02-16T19:17:55Z")

</div>

ELK 8.12.x is working perfectly fine on Windows platform. Extract again and run it.

---

<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:** [March 15, 2024, 7:18pm UTC](https://discuss.elastic.co/t/windows-install-jruby-not-found/353487/5 "2024-03-15T19:18:25Z")

</div>

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