title: Could not find or load main class net.lightbody.bmp.proxy.Main
body: <p>Github link:-</p>
  
  <pre><code>https://github.com/jarib/browsermob-proxy-rb
  </code></pre>
  
  <p>Am creating a proxy using browsermob proxy by following:-</p>
  
  <pre><code>require 'selenium/webdriver'
  require 'browsermob/proxy'
  
  server = BrowserMob::Proxy::Server.new("/path/to/downloads/browsermob-proxy/bin/browsermob-proxy") #=&gt; #&lt;BrowserMob::Proxy::Server:0x000001022c6ea8 ...&gt;
  server.start
  </code></pre>
  
  <p>While executing "server.start", it throws error like below:-</p>
  
  <pre><code>Error: Could not find or load main class net.lightbody.bmp.proxy.Main
  BrowserMob::Proxy::Server::ServerDiedError: unable to launch the server (rerun with :log =&gt; true to see process output)
      from /home/ubuntu/.rvm/gems/ruby-2.2.0@v-qa/gems/browsermob-proxy-0.2.0/lib/browsermob/proxy/server.rb:75:in `wait_for_startup'
      from /home/ubuntu/.rvm/gems/ruby-2.2.0@v-qa/gems/browsermob-proxy-0.2.0/lib/browsermob/proxy/server.rb:34:in `start'
      from (irb):13
      from /home/ubuntu/.rvm/rubies/ruby-2.2.0/bin/irb:11:in `&lt;main&gt;'
  </code></pre>
  
  <p>How do i resolve this?</p>