# Unable to install logstash plugin

**URL:** <https://discuss.elastic.co/t/unable-to-install-logstash-plugin/228565>\
**Category:** Logstash\
**Created:** [April 17, 2020, 7:33pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-plugin/228565 "2020-04-17T19:33:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dranga](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@dranga](https://discuss.elastic.co/u/dranga)\
**Post date:** [April 17, 2020, 7:33pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-plugin/228565/1 "2020-04-17T19:33:20Z")

</div>

Hi,

I am new to JRuby and Logstash. I am trying to setup Logstash locally and install some custom plugins.

I added my custom plugins to the Gemfile and tried running bin/logstash-plugin the following way:

```auto
~/logstash-6.4.2|⇒ bin/logstash-plugin install --no-verify
Error: Could not find or load main class org.jruby.Main

~/logstash-6.4.2|⇒ java -version
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)

~/logstash-6.4.2|⇒ which jruby
/Users/dranga/.rbenv/shims/jruby

~/logstash-6.4.2|⇒ jruby -v
jruby 9.2.11.1 (2.5.7) 2020-03-25 b1f55b1a40 Java HotSpot(TM) 64-Bit Server VM 25.241-b07 on 1.8.0_241-b07 +jit [darwin-x86_64]

~/logstash-6.4.2|⇒ echo $PATH
/Users/dranga/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/Users/dranga/bin::/usr/bin:/bin:/usr/sbin:/sbin

~|⇒ which gem
/Users/dranga/.rbenv/shims/gem

~|⇒ which bundle
/Users/dranga/.rbenv/shims/bundle

```

I installed jruby using rbenv.

Can you please help me understand what could be causing "Error: Could not find or load main class org.jruby.Main" when I have jruby available in my path?

---

<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:** [May 15, 2020, 7:34pm UTC](https://discuss.elastic.co/t/unable-to-install-logstash-plugin/228565/2 "2020-05-15T19:34:35Z")

</div>

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