diff --git a/pkg/debian/init.d/elasticsearch b/pkg/debian/init.d/elasticsearch index 61692194c31..8d250b41847 100644 --- a/pkg/debian/init.d/elasticsearch +++ b/pkg/debian/init.d/elasticsearch @@ -46,7 +46,7 @@ ES_USER=elasticsearch ES_GROUP=elasticsearch # The first existing directory is used for JAVA_HOME (if JAVA_HOME is not defined in $DEFAULT) -JDK_DIRS="/usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun" +JDK_DIRS="/usr/lib/jvm/java-7-openjdk /usr/lib/jvm/java-7-oracle /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun" # Look for the right JVM to use for jdir in $JDK_DIRS; do