<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    Hi Daniel,<br>
    <br>
    I can not reproduce the issue you experience with jdk25.0.1:<br>
    <br>
    ---<br>
    $ ~/jdk-25.0.1.jdk/Contents/Home/bin/jpackage --input input --dest
    output --type app-image --main-jar hello.jar --main-class
    com.my_domain.project.Hello --mac-package-identifier
    com.my-domain.project<br>
    $ echo $?<br>
    0<br>
    ---<br>
    <br>
    If I run the same command line without ` --mac-package-identifier`
    option it fails as expected:<br>
    ---<br>
    $ ~/jdk-25.0.1.jdk/Contents/Home/bin/jpackage --input input --dest
    output --type app-image --main-jar hello.jar --main-class
    com.my_domain.project.Hello<br>
    Bundler Mac Application Image skipped because of a configuration
    problem: invalid mac bundle identifier [com.my_domain.project].<br>
    Advice to fix: specify identifier with "--mac-package-identifier".<br>
    ---<br>
    <br>
    The same failure for `--mac-package-identifier
    com.my_domain.project` (with the underscore):<br>
    ---<br>
    $ ~/jdk-25.0.1.jdk/Contents/Home/bin/jpackage --input input --dest
    output --type app-image --main-jar hello.jar --main-class
    com.my_domain.project.Hello --mac-package-identifier
    com.my_domain.project<br>
    Bundler Mac Application Image skipped because of a configuration
    problem: invalid mac bundle identifier [com.my_domain.project].<br>
    Advice to fix: specify identifier with "--mac-package-identifier".<br>
    ---<br>
    <br>
    Any chance you accidentally put the string with the underscore
    instead of the hyphen as a value of the `--mac-package-identifier`
    option on your command line?<br>
    <br>
    - Alexey<br>
    <br>
    <div class="moz-cite-prefix">On 11/3/2025 11:43 AM, Daniel Peintner
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAAoP7T6T=9Zjnghb39K9S5+s1yzySVnHXqPUMbBaQZBzWOdQ1Q@mail.gmail.com">
      
      <div dir="ltr">Hi,<br>
        <br>
        I am about to switch a JavaFX project from JDK21 to JDK25 and I
        noticed a problem when running jpackage.<br>
        <br>
        My domain has a hyphen, like in <a href="http://www.my-domain.com" moz-do-not-send="true">www.my-domain.com</a><br>
        Hence, my Java package reads like this: com.my_domain.project<br>
        Note: hyphen becomes underscore.<br>
        <br>
        Running vanilla jpackage in JDK21 complained with<br>
        Invalid Mac-Bundle-ID [com.my_domain.project]<br>
        <div>due to the *invalid* underscore and suggests me to use
          "--mac-package-identifier"</div>
        <div><br>
        </div>
        <div>Hence, I added --mac-package-identifier
          com.my-domain.project (with the hyphen again)</div>
        <div>All good so far.</div>
        <div><br>
        </div>
        <div>Running the same code with JDK25 with the above settings
          shows the error message again</div>
        <div>
          Invalid Mac-Bundle-ID [com.my_domain.project] </div>
        <div><br>
        </div>
        <div>I can add any argument to 
          --mac-package-identifier</div>
        <div>It seems it is simply not taken into account.</div>
        <div><br>
        </div>
        <div>I am using JDK 25.0.1</div>
        <div><br>
        </div>
        <div>Is this a known issue with JDK25 and jpackage?</div>
        <div>Is there any other way to make jpackage work?</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div><br>
        </div>
        <div>-- Daniel</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>