i have seen other blogs and SO questions relating to this issue but none of them seem to help. I am trying to install sunspot with solr, however i keep getting an error when running the following command:
bundle exec rake sunspot:solr:start
The is the trace from running the command:
** Invoke sunspot:solr:run (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute sunspot:solr:run
/home/i7core/.rvm/gems/ruby-1.9.3-p125/bin/rake: No such file or directory - java -version
rake aborted!
You need a Java Runtime Environment to run the Solr server
My gemfile:
gem 'sunspot_rails', '~> 1.3.0'
gem 'sunspot_solr'
Seems like i do not have a java runtime environment, but i have already installed java. Not sure what to do. There have also been a few github issues and everthing seems to work with the latest version, but i still cannot get it to work. Please help.