Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8248501

[macos] App created with jpackage on Mac fails with error -10810

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15, 16
    • Fix Version/s: 15
    • Component/s: tools
    • Environment:

      MacOS 10.14.6

      JDK 14, 15, 16

      JavaFX 15 EA

    • Subcomponent:
    • Resolved In Build:
      b31
    • CPU:
      x86
    • OS:
      os_x

      Backports

        Description

        I already create apps by bundling them with jpackage for quite some time now but recently (I cannot exactly say with which build) this stopped working. The build itself works without problem and also the size of the app bundle is the same as before but when I double click the application it just does not open. If I run the app on the command line via "open myApp.app" it terminates immediately with the error message "LSOpenURLsWithRole() failed with error -10810 for the file myApp.app." It would be helpful to know what that actually means.

        This must be a regression because for my code and build script this still works perfectly when I use the JDK 14 version of jpackage but since some build of JDK 15 this does not work anymore up to and including JDK 16 b03.

        My procedure is to first create an image via jlink and then bundle that with the application jars via jpackage in a second step.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  herrick Andy Herrick
                  Reporter:
                  mpaus Michael Paus
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: