[email protected] 邮箱:[email protected] ---- 转发的邮件 ---- 发件人 Andrew H. 
Gross<[email protected]> 日期 2023年09月30日 08:40 收件人 
许轲<[email protected]> 抄送至 [email protected] 主题 Re: Bug Report 
[jpackage Packaging Issue] Hello, I read your problem description.  As I 
understand it, this does not appear to be a vulnerability. If you want to 
report a bug, then this site[0] is the best.  This mailing list[1] is the one 
that covers jpackage. Thank you, Andrew Gross --- [0] 
https://bugreport.java.com/bugreport/ [1] [email protected] On 
9/29/2023 10:12 AM, 许轲 wrote: check out the attachment for more details 
Subject: Bug Report: [jpackage Packaging Bug] Dear OpenJDK Team, I would like 
to report a bug I encountered while using OpenJDK. Below are the details of the 
issue: **Problem Description:** I'm attempting to package my JavaFX 
application, but when I reach the crucial step (jpackage), the packaging 
process does not behave as expected. **Version Information:** - OpenJDK version 
"21" 2023-09-19 - OpenJDK Runtime Environment (build 21+35-2513) - OpenJDK 
64-Bit Server VM (build 21+35-2513, mixed mode, sharing) **Minimal Reproducible 
Example:** MY project address: https://gitee.com/jcnc-org/JNotepad I'm trying 
to package my JavaFX application. First, I use jlink as follows: ``` <plugin>   
  <groupId>org.openjfx</groupId>     
<artifactId>javafx-maven-plugin</artifactId>     <version>0.0.8</version>     
<executions>         <execution>             <!-- Default configuration for 
running with: mvn clean javafx:run -->             <id>default-cli</id>         
    <configuration>                 
<mainClass>org.jcnc.jnotepad/org.jcnc.jnotepad.LunchApp</mainClass>             
    <launcher>JNotepad</launcher>                 
<jlinkImageName>JNotepad</jlinkImageName>                 
<noManPages>true</noManPages>                 <stripDebug>true</stripDebug>     
            <noHeaderFiles>true</noHeaderFiles>                 
<compress>2</compress>             </configuration>         </execution>     
</executions> </plugin> ``` Then, when I use the following command: ``` 
jpackage ` --name JNotepad ` --type app-image ` -m 
org.jcnc.jnotepad/org.jcnc.jnotepad.LunchApp ` --runtime-image 
.\target\JNotepad\ ` --icon src/main/resources/img/icon.ico ` --app-version 
1.1.13 ` --vendor "JCNC" ``` **Expected and Actual Behavior:** jpackage fails 
to include the JNotepad.ico file in the folder. - Failure Case (no 
JNotepad.ico): - Expected Behavior (with Jdk 20 and earlier, where JNotepad.ico 
is included): **Error Logs:** None **Additional Context Information:** This 
issue occurs with OpenJDK-17 or any JDK versions before 21. For example:     
openjdk version "17.0.2" 2022-01-18     OpenJDK Runtime Environment (build 
17.0.2+8-86)     OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, 
sharing) System Information:     Hostname:         LUKE     OS Name:           
Microsoft Windows 11 Home Chinese Edition     OS Version:        10.0.22621 Not 
Available Build 22621     OS Manufacturer:   Microsoft Corporation     OS 
Configuration:  Standalone Workstation     OS Build Type:     Multiprocessor 
Free     Registered Owner:  luke     Registered Organization: Not Available     
Product ID:        00342-35838-97577-AAOEM     Initial Install Date: March 14, 
2023, 21:45:39     System Boot Time:  September 30, 2023, 0:11:06     System 
Manufacturer: HUAWEI     System Model:      KLVC-WXX9     System Type:       
x64-based PC     Processor:         1 Processor Installed.                     
[01]: Intel64 Family 6 Model 142 Stepping 12 GenuineIntel ~1803 Mhz     BIOS 
Version:      HUAWEI 1.30, February 16, 2022     Windows Directory: C:\WINDOWS  
   System Directory:  C:\WINDOWS\system32     Boot Device:       
\Device\HarddiskVolume1     System Locale:     zh-cn; Chinese (China)     Input 
Locale:      zh-cn; Chinese (China)     Time Zone:         (UTC+08:00) Beijing, 
Chongqing, Hong Kong SAR, Urumqi     Total Physical Memory: 16,212 MB     
Available Physical Memory: 3,568 MB     Virtual Memory:    Maximum Size: 25,940 
MB     Virtual Memory:    Available: 6,220 MB     Virtual Memory:    In Use: 
19,720 MB     Page File Location: C:\pagefile.sys     Domain:            
WORKGROUP     Logon Server:      \\LUKE     Hotfixes:          4 Hotfixes 
Installed.                     [01]: KB5029921                     [02]: 
KB5012170                     [03]: KB5030219                     [04]: 
KB5028756     Network Cards:     4 Network Adapters Installed.                  
   [01]: Intel(R) Wireless-AC 9560 160MHz                             
Connection Name: WLAN                             DHCP Enabled: Yes             
                DHCP Server: 192.168.0.1                             IP 
Addresses                                 [01]: 192.168.0.106                   
              [02]: fe80::b6da:a7b4:e0dc:3ef5                     [02]: 
Bluetooth Device (Personal Area Network)                             Connection 
Name: Bluetooth Network Connection                             Status: Media 
disconnected                     [03]: VirtualBox Host-Only Ethernet Adapter    
                         Connection Name: Ethernet 2                            
 DHCP Enabled: No                             IP Addresses                      
           [01]: 192.168.56.1                                 [02]: 
fe80::20aa:46cf:9661:52f2                     [04]: Wintun Userspace Tunnel     
                        Connection Name: Clash                             DHCP 
Enabled: No                             IP Addresses                            
     [01]: 198.18.0.1     Hyper-V Requirements: A virtual machine monitor 
program has been detected. Hyper-V features are not displayed. **Steps:** 1. 
Run jlink. 2. Run jpackage. 3. Observe the bug. This bug is consistently 
reproducible in my environment. Please let me know if you need any further 
information to investigate and resolve this issue. Thank you for your attention 
to this matter. Sincerely, Ke Xu Email: [email protected]

Reply via email to