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

[javafxpackager] : fxPackaging is not applied

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: deploy
    • Labels:

      Description

      fxPackaging is not applied
      This bug is reproducible with linux.app, deb and rpm bundlers. (I think it affects all bundlers)

      Steps to reproduce
      1) "javafxpackager" "-deploy" "-verbose" "-outdir" "." "-outfile" "test" "-native" "image" "-BfxPackaging=true" "-BmainJar=jars/testFxAppWithUtil.jar" "-Bclasspath=testFxAppWithUtil.jar:Util.jar" "-srcfiles" "jars/testFxAppWithUtil.jar:jars/Util.jar" "-appclass" "testapp.App1" "-srcdir" "jars"

      2) Run ./bundles/App1/App1 and you will get an exception.

      Expected to find launcher class: [com/javafx/main/Main]
      Exception thrown from main method of com/javafx/main/Main
      Exception in thread "main" java.lang.NoClassDefFoundError: com/javafx/main/Main
      Caused by: java.lang.ClassNotFoundException: com.javafx.main.Main
      at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

        Attachments

          Activity

            People

            • Assignee:
              shemnon Danno Ferrin (Inactive)
              Reporter:
              aeremeev Andrei Eremeev
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: