You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2013/05/13 02:53:16 UTC

[jira] [Commented] (SOLR-4796) zkcli.sh should honor JAVA_HOME

    [ https://issues.apache.org/jira/browse/SOLR-4796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13655702#comment-13655702 ] 

Mark Miller commented on SOLR-4796:
-----------------------------------

I've tested this - seems to work as expected with or without a JAVA_HOME env variable set. I'll commit shortly.
                
> zkcli.sh should honor JAVA_HOME
> -------------------------------
>
>                 Key: SOLR-4796
>                 URL: https://issues.apache.org/jira/browse/SOLR-4796
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 4.2
>            Reporter: Roman Shaposhnik
>            Assignee: Mark Miller
>             Fix For: 5.0, 4.4
>
>         Attachments: SOLR-4796.patch.txt
>
>
> On a system with GNU java installed the fact that zkcli.sh doesn't honor JAVA_HOME could lead to hard to diagnose failure:
> {noformat}
> 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)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org