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:
~/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?