0

I got this error in running heroku run rake sunspot:solr:run

rake aborted!
You need a Java Runtime Environment to run the Solr server

is there a way i can install jre in heroku?

Jude Calimbas
  • 2,764
  • 2
  • 27
  • 24

1 Answers1

2

You cannot install the JRE on Heroku, and thus you cannot run Solr from a Heroku worker.

If you want Solr in Heroku, you'll have to use the Websolr addon, or start an EC2 server and run your own copy of Solr from there.

Veraticus
  • 15,944
  • 3
  • 41
  • 45