You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/25 07:06:20 UTC

[jira] [Commented] (ARTEMIS-698) Try to cope with systems without "which" for finding java

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

ASF GitHub Bot commented on ARTEMIS-698:
----------------------------------------

GitHub user scop opened a pull request:

    https://github.com/apache/activemq-artemis/pull/733

    ARTEMIS-698 Remove full path + executability check of java

    Fixes issues with systems that have no "which", as well as the fallback
    to using plain "java" from PATH.
    
    This is an alternative fix to #732, see discussion in it for more details.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/scop/activemq-artemis no-x-check

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-artemis/pull/733.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #733
    
----
commit 363fc652bf7a468b4f1fd067af3653c6729e4772
Author: Ville Skyttä <vi...@iki.fi>
Date:   2016-08-25T07:05:15Z

    ARTEMIS-698 Remove full path + executability check of java
    
    Fixes issues with systems that have no "which", as well as the fallback
    to using plain "java" from PATH.

----


> Try to cope with systems without "which" for finding java
> ---------------------------------------------------------
>
>                 Key: ARTEMIS-698
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-698
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>    Affects Versions: 1.5.0
>            Reporter: Ville Skyttä
>            Priority: Minor
>             Fix For: 1.5.0
>
>
> The artemis shell scripts fail to find java if JAVA_HOME is not set and "which" is not installed. Shell built-ins can be used as fallbacks in that case:
> - for zsh: whence -p (type -p exists but output is not appropriate)
> - for bash and ksh: type -p



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)