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

Sometimes cannot run installed application on macOS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: internal
    • Fix Version/s: internal
    • Component/s: tools
    • Labels:

      Description

      Unable to launch application which was installed using installer generated by jpackager. This issue reproducible with several jars files, so I think it does not depend on jar file.

      1) jpackager create-installer pkg --input input --output output --name hello --main-jar hello.jar --class hello.Hello --files hello.jar
      2) Install created pkg file.
      3) Run application from finder or terminal. Application does not run. When running from terminal following error will be displayed from Java:
      Error: Could not find or load main class hello.Hello
      Caused by: java.lang.ClassNotFoundException: hello.Hello

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ssadetsky Semyon Sadetsky (Inactive)
                Reporter:
                almatvee Alexander Matveev
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: