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

Sometimes cannot run installed application on macOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • internal
    • internal
    • tools

      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

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

              Created:
              Updated:
              Resolved: