Java Runtime Environment missing


I added solr image and getting below error while solr service started

Sunspot::Solr::Server::JavaMissing: You need a Java Runtime Environment


  • image: circleci/openjdk:latest
  • image: ‘solr:latest’


  • JAVA_HOME: /usr/lib/jvm/java-11-openjdk

I think circleci is not able to get correct JAVA_HOME path to setup solr service. Can some one help me how to know which java path can be used for this.

Initially I tried with following configuration but getting same issue

  • image solr:6.6
  • image circleci/openjdk:8 image
  • JAVA_HOME: /usr/lib/jvm/java-8-openjdk-amd64