[jpackage] Changes to icon handling between Java 17 and Java 21 on Windows

Daniel Peintner daniel.peintner at gmail.com
Wed Nov 6 09:19:42 UTC 2024


Hello,

I am not sure if this is the right place to ask, but I hope so.
If not please let me know where I can report this kind of problem.

Recently we changed from JDK 17 to JDK 21 and something seems to have
changed when running jpackage with --icon option.

Produced structure on Windows for

# Java 17
/app
/runtime
foo.exe
foo.ico

while for

# Java 21 (v 21.0.5)
/app
/runtime
foo.exe

As you can see the foo.ico is missing.
Note: the foo.exe still shows the right icon when looking at it in
FileExplorer.

Anyhow, on some devices the missing ico file is causing issues.
There is no icon on the program list nor in the taskbar (see attached
images).

Note: On some windows installations it works without issues.

Is this a known problem? I tried to browse through https://bugs.openjdk.org
without finding such a bug report.

Thanks for any input/advice.

-- Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20241106/d00f37cd/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: program-list.png
Type: image/png
Size: 18415 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20241106/d00f37cd/program-list-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: taskbar.png
Type: image/png
Size: 23450 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20241106/d00f37cd/taskbar-0001.png>


More information about the core-libs-dev mailing list