<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hey Michael,</p>
    <p>Jextract is not bundled with the JDK anymore. It was moved into a
      separate repo a few years ago. [1]<br>
    </p>
    <p>The jextract executable that you're picking up seems to be coming
      from an older JDK you have installed?</p>
    <p>If you want to use jextract, you can download the latest version
      at: <a class="moz-txt-link-freetext" href="https://jdk.java.net/jextract/">https://jdk.java.net/jextract/</a></p>
    <p>HTH,<br>
      Jorn</p>
    <p>[1]: <a class="moz-txt-link-freetext" href="https://github.com/openjdk/jextract">https://github.com/openjdk/jextract</a><br>
    </p>
    <div class="moz-cite-prefix">On 30/05/2024 20:50, Michael Hall
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:0FECE078-27E4-4E17-8D94-493496BABE90@gmail.com">
      
      I noticed a pointer to jextract doc in the Java Newsletter that
      began with a typical way to run showing a normal command
      invocation.
      <div><br>
      </div>
      <div>jextract \</div>
      <div>…</div>
      <div><br>
      </div>
      <div>On MacOS</div>
      <div><br>
      </div>
      <div>
        <div>jextract --help</div>
        <div>zsh: command not found: jextract</div>
        <div>(base) mjh@MacBook-Pro-2 weka % /usr/libexec/java_home
          --exec jextract</div>
        <div>WARNING: Using incubator modules: jdk.incubator.foreign,
          jdk.incubator.jextract</div>
        <div>Expected a header file</div>
        <div>(base) mjh@MacBook-Pro-2 weka % /usr/libexec/java_home
          --exec jextract --help</div>
        <div>WARNING: Using incubator modules: jdk.incubator.jextract,
          jdk.incubator.foreign</div>
        <div>Non-option arguments:  </div>
        <div>[String] -- header file</div>
        <div><br>
        </div>
        <div>Option                         Description                
                       </div>
        <div>------                         -----------                
                       </div>
        <div>-?, -h, --help                 print help                 </div>
      </div>
      <div>...</div>
      <div><br>
      </div>
      <div>The command is default not there on MacOS (M3 Sonoma 14.5)</div>
      <div><br>
      </div>
      <div>I think this has been discussed before and java has no way to
        provide these default invocations for new commands on MacOS? </div>
      <div>Is that still correct with no way planned to ever include new
        commands?</div>
      <div><br>
      </div>
      <div>
        <div>Also I might be mistaken but I thought FFM and related were
          out of incubator at 22? </div>
      </div>
      <div><br>
      </div>
      <div>I thought possibly /usr/libexec/java_home was in this case
        for some reason not defaulting to the latest installed jdk (<font face="Menlo"><span style="font-size: 11px;">openjdk 22.0.1
            2024-04-16)</span></font></div>
      <div>But </div>
      <div>/usr/libexec/java_home --version 22 --exec jextract —help</div>
      <div>Gets the same</div>
      <div><br>
      </div>
      <div>It also seems jextract has no option to indicate the current
        installed version?</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
    </blockquote>
  </body>
</html>