Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-4796: zkcli.sh should honor JAVA_HOME

Mark Robert Millere64b4aa3474a
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 647b60bfa4f..c626bc79583 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -108,6 +108,8 @@ Bug Fixes
* SOLR-4563: RSS DIH-example not working (janhoy)
+* SOLR-4796: zkcli.sh should honor JAVA_HOME (Roman Shaposhnik via Mark Miller)
+
Other Changes
----------------------
diff --git a/solr/example/cloud-scripts/zkcli.sh b/solr/example/cloud-scripts/zkcli.sh
index ad68ef470b2..ab5da966fa5 100644
--- a/solr/example/cloud-scripts/zkcli.sh
+++ b/solr/example/cloud-scripts/zkcli.sh
@@ -9,5 +9,5 @@ JVM="java"
sdir="`dirname \"$0\"`"
-$JVM -Dlog4j.configuration=file:$sdir/log4j.properties -classpath "$sdir/../solr-webapp/webapp/WEB-INF/lib/*:$sdir/../lib/ext/*" org.apache.solr.cloud.ZkCLI ${1+"$@"}
+PATH=$JAVA_HOME/bin:$PATH $JVM -Dlog4j.configuration=file:$sdir/log4j.properties -classpath "$sdir/../solr-webapp/webapp/WEB-INF/lib/*:$sdir/../lib/ext/*" org.apache.solr.cloud.ZkCLI ${1+"$@"}