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' C:/Ruby193/gems/sunspot_solr-1.3.0/lib/sunspot/solr/tasks.rb:23:in `block (3 levels) in <top (required)>' c:/Ruby193/lib/ruby/1.9.1/rake/task.rb:205:in `call' c:/Ruby193/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute' c:/Ruby193/lib/ruby/1.9.1/rake/task.rb:200:in `each' c:/Ruby193/lib/ruby/1.9.1/rake/task.rb:200:in `execute' c:/Ruby193/lib/ruby/1.9.1/rake/task.rb:158:in `block in invoke_with_call_chain' c:/Ruby193/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' c:/Ruby193/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain' c:/Ruby193/lib/ruby/1.9.1/rake/task.rb:144:in `invoke' c:/Ruby193/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task' c:/Ruby193/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels) in top_level' c:/Ruby193/lib/ruby/1.9.1/rake/application.rb:94:in `each' c:/Ruby193/lib/ruby/1.9.1/rake/application.rb:94:in `block in top_level' c:/Ruby193/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling' c:/Ruby193/lib/ruby/1.9.1/rake/application.rb:88:in `top_level' c:/Ruby193/lib/ruby/1.9.1/rake/application.rb:66:in `block in run' c:/Ruby193/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling' c:/Ruby193/lib/ruby/1.9.1/rake/application.rb:63:in `run' c:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:32:in `<top (required)>' c:/Ruby193/bin/rake:19:in `load' c:/Ruby193/bin/rake:19:in `<main>' Tasks: TOP => sunspot:solr:run Attachments: http://www.ruby-forum.com/attachment/6806/Solr.JPG -- Posted via http://www.ruby-forum.com/. -- 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.

