Skip to content

Instantly share code, notes, and snippets.

@cableray
Created December 22, 2011 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cableray/1512142 to your computer and use it in GitHub Desktop.
Save cableray/1512142 to your computer and use it in GitHub Desktop.
Trying to run solr in a thread
require 'java'
require '/Users/cableray/.rvm/gems/jruby-1.6.5@busydocs/gems/sunspot_solr-1.3.0/solr/start.jar'
Dir['/Users/cableray/.rvm/gems/jruby-1.6.5@busydocs/gems/sunspot_solr-1.3.0/solr/lib/*.jar'].each {|f| require f}
Java::OrgMortbay.start.Main.main [] # not in a thread yet, but just trying to start it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment