title: Logstash Unable to find JRuby
body: <p>I download logstash 2.0.0 from <a href="https://www.elastic.co/downloads/logstash" rel="nofollow">here</a>.
  test output:</p>
  
  <pre><code>D:\logstash\bin&gt;logstash -e 'input { stdin { } } output { stdout {} }'
  Unable to find JRuby.
  If you are a user, this is a bug.
  If you are a developer, please run 'rake bootstrap'. Running 'rake' requires the 'ruby' program be available.
  </code></pre>
  
  <p>windows also alert me “how to open <code>.rb</code>", I have ruby installed, but not familiar with it.</p>
  
  <p>Because it says "If you are a user, this is a bug.", so I think I don't need to install JRuby. Google also do not tell me how to fix this bug.</p>
  
  <p>How do I solve this?</p>
  
  <p>===============================</p>
  
  <p><code>setup.bat</code> same error:</p>
  
  <pre><code>D:\logstash\bin&gt;setup.bat
  Unable to find JRuby.
  If you are a user, this is a bug.
  If you are a developer, please run 'rake bootstrap'. Running 'rake' requires the 'ruby' program be available.
  </code></pre>
  
  <p><strong>update:</strong></p>
  
  <p>After I associate <code>.rb</code> with <code>ruby.exe</code> error change to :</p>
  
  <pre><code>D:\logstash\bin&gt;logstash
  Unable to find JRuby.
  If you are a user, this is a bug.
  If you are a developer, please run 'rake bootstrap'. Running 'rake' requires the 'ruby' program be available.
  C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file --
   bundler (LoadError)
          from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
          from D:/logstash/lib/bootstrap/bundler.rb:44:in `setup!'
          from D:/logstash/lib/bootstrap/environment.rb:47:in `&lt;main&gt;'
  </code></pre>