You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/10/09 06:32:17 UTC

[GitHub] [rocketmq] coder-zzzz opened a new issue, #5256: tool.sh's function find_java_home sometimes failed

coder-zzzz opened a new issue, #5256:
URL: https://github.com/apache/rocketmq/issues/5256

   ```shell
   find_java_home()
   {
       case "`uname`" in
           Darwin)
               JAVA_HOME=$(/usr/libexec/java_home)
           ;;
           *)
               JAVA_HOME=$(dirname $(dirname $(readlink -f $(which javac))))
           ;;
       esac
   }
   ```
   
   why not use "which java" instead of "which javac",
   sometimes we didn't install javac, but must install java


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] echooymxq commented on issue #5256: tool.sh's function find_java_home sometimes failed

Posted by GitBox <gi...@apache.org>.
echooymxq commented on issue #5256:
URL: https://github.com/apache/rocketmq/issues/5256#issuecomment-1274454258

   It can be replaced by `which java`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] tool.sh's function find_java_home sometimes failed [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5256:
URL: https://github.com/apache/rocketmq/issues/5256#issuecomment-1763215330

   This issue was closed because it has been inactive for 3 days since being marked as stale.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] tool.sh's function find_java_home sometimes failed [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5256:
URL: https://github.com/apache/rocketmq/issues/5256#issuecomment-1758717904

   This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] tool.sh's function find_java_home sometimes failed [rocketmq]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #5256: tool.sh's function find_java_home sometimes failed
URL: https://github.com/apache/rocketmq/issues/5256


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org