On Sat, Dec 3, 2011 at 12:28 AM, Somnath Mallick <[email protected]> wrote:
> 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 ... > 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 If `java -version` works from the command line, it should work here, because that's what this gem is using to confirm Java is installed (lib/solr/sunspot/java.rb) -- 3 module Java 4 def self.installed? 5 `java -version &> /dev/null` 6 $?.success? 7 end But you're using Windows? What happens if you run the above command from a shell? Does CMD understand " &> /dev/null" ? -- Hassan Schroeder ------------------------ [email protected] http://about.me/hassanschroeder twitter: @hassan -- 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.

