Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4796

zkcli.sh should honor JAVA_HOME

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.3.1, 4.4, 6.0
    • Component/s: scripts and tools
    • Labels:
      None

      Description

      On a system with GNU java installed the fact that zkcli.sh doesn't honor JAVA_HOME could lead to hard to diagnose failure:

      Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.solr.cloud.ZkCLI
         at gnu.java.lang.MainThread.run(libgcj.so.7rh)
      Caused by: java.lang.ClassNotFoundException: org.apache.solr.cloud.ZkCLI not found in gnu.gcj.runtime.SystemClassLoader{urls=[], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
         at java.net.URLClassLoader.findClass(libgcj.so.7rh)
         at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
         at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
         at gnu.java.lang.MainThread.run(libgcj.so.7rh)
      
      

        Attachments

        1. SOLR-4796.patch.txt
          0.5 kB
          Roman Shaposhnik

          Activity

            People

            • Assignee:
              markrmiller@gmail.com Mark Miller
              Reporter:
              rvs Roman Shaposhnik
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: