Yes, that seems to work. It returns:
"The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.

no"

On Tue, Nov 5, 2024 at 5:11 AM Ihor Radchenko <yanta...@posteo.net> wrote:

> Benjamin McMillan <mcmilla...@gmail.com> writes:
>
> > A call of "java --version" returns
> > "The operation couldn’t be completed. Unable to locate a Java Runtime.
> > Please visit http://www.java.com for information on installing Java."
> > This is on a mac, it seems that they provide a stub of java, but not the
> > full environment.
>
> Hmm. What about the return code? Something like
> java --version && echo "yes" || echo "no"
>
> > Is it possible that the test suite takes this response to mean that java
> is
> > available, even though it is not?
>
> The test simply checks if there is an executable. Whether it is working
> or not is not tested.
>
> Maybe we can use java --version somehow (as in the above).
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>
>

Reply via email to