<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Hi Daniel,<br>
<br>
<div class="moz-cite-prefix">On 11/4/2025 10:01 AM, Daniel Peintner
wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAAoP7T7cQa8j20p_-Ft+64AHz0zEXe1_Os+h0g405dtaxCRFkQ@mail.gmail.com">
<div dir="ltr">
<div>Hi Alexey,</div>
<div><br>
</div>
<div>Thank you for your reply.</div>
<div>I am using the badass runtime plugin which calls jpackage
under the hood.</div>
<div><br>
</div>
<div>While trying to create an example project, I noticed that
there were some changes </div>
<div>'--mac-package-identifier' needs to go into imageOptions
and not installerOptions.</div>
<div>see <a href="https://urldefense.com/v3/__https://github.com/danielpeintner/Java11Test/commit/742fce0d9e2995554829b6f199f22f0b22a5d385__;!!ACWV5N9M2RV99hQ!JboKeapbys_zvoKtDq8PJD1LD7_jTnfgpRoEKxXwGARA-sZKB8VR-82CozmfGafHgKQvfLrODMHA2f2-bIJXfhDZBpgo-GY$" moz-do-not-send="true">https://github.com/danielpeintner/Java11Test/commit/742fce0d9e2995554829b6f199f22f0b22a5d385</a></div>
<div><br>
</div>
<div>That fixed the problem with jpackage. Anyhow, it still does
not work with JDK25 and macOS signing.</div>
<div>Using the JDK25 seems to need additional options (compared
to JDK21).</div>
</div>
</blockquote>
Interesting. Looks like a bug in jdk25's jpackage. <br>
<br>
<blockquote type="cite" cite="mid:CAAoP7T7cQa8j20p_-Ft+64AHz0zEXe1_Os+h0g405dtaxCRFkQ@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>With JDK25 and --mac-sign the process no longer opens the
KeyChain access and asks for the credentials. </div>
</div>
</blockquote>
Can you run jpackage with the "--verbose" option and share logs of
running the jdk25 and jdk21 jpackage? This may help us understand
why behavior changed.<br>
<br>
- Alexey<br>
<br>
<blockquote type="cite" cite="mid:CAAoP7T7cQa8j20p_-Ft+64AHz0zEXe1_Os+h0g405dtaxCRFkQ@mail.gmail.com">
<div dir="ltr">
<div>Hence, the image itself is no longer signed which matches
with what I see on the debug console</div>
<div>"non signed app-image used to sign dmg" ... freely
translated into English since I see the German version only</div>
<div><br>
</div>
<div>Therefore, apple's notary service says invalid with the
logs like "The binary is not signed with a valid Developer ID
certificate".</div>
<div><br>
</div>
<div>Using the *same* gradle file, switching to JDK21 works
without any issues again.</div>
<div>I will try to investigate further.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>-- Daniel</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div class="gmail_quote gmail_quote_container">
<div dir="ltr" class="gmail_attr">On Mon, Nov 3, 2025 at
7:30 PM Alexey Semenyuk <<a href="mailto:alexey.semenyuk@oracle.com" moz-do-not-send="true" class="moz-txt-link-freetext">alexey.semenyuk@oracle.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> 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>On 11/3/2025 11:43 AM, Daniel Peintner wrote:<br>
</div>
<blockquote type="cite">
<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="https://urldefense.com/v3/__http://www.my-domain.com__;!!ACWV5N9M2RV99hQ!JboKeapbys_zvoKtDq8PJD1LD7_jTnfgpRoEKxXwGARA-sZKB8VR-82CozmfGafHgKQvfLrODMHA2f2-bIJXfhDZ7KlfIEw$" target="_blank" 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>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>