On Dec 3, 3:28 am, Somnath Mallick <[email protected]> wrote: > Right now... I have installed Solr and am able to start it using Tomcat. > > I can see the Solr Admin page (attached sreenshot). But still i get the > above error mentioned. running the command with --trace gives me this: > > $ rake sunspot:solr:run --trace > Requiring REXML > ** Invoke sunspot:solr:run (first_time) > ** Invoke environment (first_time) > ** Execute environment > ** Execute sunspot:solr:run > The syntax of the command is incorrect. > rake aborted! > You need a Java Runtime Environment to run the Solr server > C:/Ruby193/gems/sunspot_solr-1.3.0/lib/sunspot/solr/server.rb:202:in > `ensure_java_installed' > C:/Ruby193/gems/sunspot_solr-1.3.0/lib/sunspot/solr/server.rb:27:in > `initialize' > C:/Ruby193/gems/sunspot_solr-1.3.0/lib/sunspot/solr/tasks.rb:23:in `new'
If you've got Solr working with Tomcat, then you won't need sunspot_solr (the packaged server) at all. All you need in that scenario is the files generated by: rails generate sunspot_rails:install and a correct config file in config/sunspot.yml. In particular, you may need to adjust the path value there to reflect your Tomcat config. --Matt Jones -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

