What are common mistakes developers make with jpackage?

Common mistakes developers make with jpackage include misconfiguring the application settings, neglecting to include native libraries, failing to test cross-platform compatibility, and misunderstanding the command-line options leading to issues in creating packages.
jpackage, Java packaging tool, common mistakes, application settings, native libraries, cross-platform compatibility, command-line options

        // Example of common jpackage mistakes
        // 1. Incorrect Image Format
        jpackage --input inputDir --name MyApp --main-jar MyApp.jar --type zip

        // 2. Missing Dependency
        jpackage --input inputDir --name MyApp --main-class com.example.Main --add-modules java.sql,java.base

        // 3. Incorrect Icon Path
        jpackage --input inputDir --name MyApp --icon /path/to/icon.png

        // 4. Not Testing on All Platforms
        // Developers often only test on their local environment leading to unexpected issues on other OS
    

jpackage Java packaging tool common mistakes application settings native libraries cross-platform compatibility command-line options