[External] : Re: RFR: 8350594: Misleading warning about install dir for DMG packaging
Michael Hall
mik3hall at gmail.com
Mon Mar 3 19:51:21 UTC 2025
> On Mar 3, 2025, at 1:37 PM, Alexey Semenyuk <alexey.semenyuk at oracle.com> wrote:
>
> Hi Michael,
>
> Thank you for the detailed report! I filed [1] ticket that, I hope, captures all findings from your report. Let me know if anything was missed or misunderstood.
>
> [1] https://bugs.openjdk.org/browse/JDK-8351073
>
> - Alexey
>
Hello Alexey,
> jpackage should copy them as-is.
It would be nice if this was the case but I think you need to be sure changes are made to the Info.plist to ensure the correct version is indicated in a few places.
Apple offers something like plist buddy that could maybe be used.
Apache looked to have some commons confguration package that included plist.
I used to have code that did some things with plists. I thought about coming up with something to handle general editing but haven’t.
There were issues I still ran into related to the jre that I put together for this. I’m not sure whether they were due to it being an early, not quite ready, jdk 25 build. Or I still also missed something in making it a working jre.
You might want to have some test(s) of the installed to be sure it is a valid working one.
Just java —version maybe for one. And/or doing something with /usr/libexec/java_home.
Whatever else might seem appropriate. I couldn’t jlnk an application with mine for some reason was one issue, that led to others.
Otherwise yes, if you are going to offer a system jre installer it needs some additional Mac specific changes, I’m sure you’ll determine what they might be.
Thanks for following up.
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250303/f2435de8/attachment.htm>
More information about the core-libs-dev
mailing list