MacOS
Jorn Vernee
jorn.vernee at oracle.com
Thu May 30 21:09:40 UTC 2024
Hey Michael,
Jextract is not bundled with the JDK anymore. It was moved into a
separate repo a few years ago. [1]
The jextract executable that you're picking up seems to be coming from
an older JDK you have installed?
If you want to use jextract, you can download the latest version at:
https://jdk.java.net/jextract/
HTH,
Jorn
[1]: https://github.com/openjdk/jextract
On 30/05/2024 20:50, Michael Hall wrote:
> I noticed a pointer to jextract doc in the Java Newsletter that began
> with a typical way to run showing a normal command invocation.
>
> jextract \
> …
>
> On MacOS
>
> jextract --help
> zsh: command not found: jextract
> (base) mjh at MacBook-Pro-2 weka % /usr/libexec/java_home --exec jextract
> WARNING: Using incubator modules: jdk.incubator.foreign,
> jdk.incubator.jextract
> Expected a header file
> (base) mjh at MacBook-Pro-2 weka % /usr/libexec/java_home --exec jextract
> --help
> WARNING: Using incubator modules: jdk.incubator.jextract,
> jdk.incubator.foreign
> Non-option arguments:
> [String] -- header file
>
> Option Description
> ------ -----------
> -?, -h, --help print help
> ...
>
> The command is default not there on MacOS (M3 Sonoma 14.5)
>
> I think this has been discussed before and java has no way to provide
> these default invocations for new commands on MacOS?
> Is that still correct with no way planned to ever include new commands?
>
> Also I might be mistaken but I thought FFM and related were out of
> incubator at 22?
>
> I thought possibly /usr/libexec/java_home was in this case for some
> reason not defaulting to the latest installed jdk (openjdk 22.0.1
> 2024-04-16)
> But
> /usr/libexec/java_home --version 22 --exec jextract —help
> Gets the same
>
> It also seems jextract has no option to indicate the current installed
> version?
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20240530/106f14cb/attachment.htm>
More information about the jextract-dev
mailing list