title: Java Runtime error when trying to install sunspot
body: <p>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:</p>
  
  <pre><code>bundle exec rake sunspot:solr:start
  </code></pre>
  
  <p>The is the trace from running the command:</p>
  
  <pre><code>** 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
  </code></pre>
  
  <p>My gemfile:</p>
  
  <pre><code>gem 'sunspot_rails', '~&gt; 1.3.0'
  gem 'sunspot_solr'
  </code></pre>
  
  <p>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.</p>