Java Runtime Environment missing

Hi

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

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

config.yml

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

circle.yml

  • 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