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

jmods folder is not auto discovered

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: deploy
    • Labels:
    • Environment:
    • Subcomponent:
    • Introduced In Version:
      9
    • OS:
      os_x
    • Verification:
      Verified

      Description

      Here is the list of some of issues observed in MAC machine.

      packaging simple hello world programs through CLI.

      stt-mac-42:ramesh gtee$ /export/home/gtee/ramesh/jdk9developerbuild/bin/java -version
      java version "9-internal"
      Java(TM) SE Runtime Environment (fastdebug build 9-internal+0-2016-09-02-141855.cbensen.jdk9udev)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 9-internal+0-2016-09-02-141855.cbensen.jdk9udev, mixed mode)


      Javapackager MAC CLI Execution
      Test Cases
      1. Simple Normal Jar (Non Modular Jar) + "-native pkg" execution

      /export/home/gtee/ramesh/jdk9developerbuild/bin/javapackager -deploy -verbose -outdir outdir -outfile test -native pkg -srcdir jars -srcfiles swing.jar -BmainJar=swing.jar -Bclasspath=swing.jar -appclass java8.SwingHello -name SimpleTest
      Building PKG package for SimpleTest
      "Adding modules: [] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.Exception: Empty module paths
      Config files are saved to /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler2765015276524204021/macosx. Use them to customize package.
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "PKG Installer" (pkg) failed to produce a bundle.
              at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(jdk.packager/PackagerLib.java:373)
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(jdk.packager/PackagerLib.java:329)
              at com.sun.javafx.tools.packager.Main.main(jdk.packager/Main.java:484)

                                      
      2. Simple Normal Jar (Non Modular Jar) + "-native dmg" execution
      /export/home/gtee/ramesh/jdk9developerbuild/bin/javapackager -deploy -verbose -outdir outdir -outfile test -native dmg -srcdir jars -srcfiles swing.jar -BmainJar=swing.jar -Bclasspath=swing.jar -appclass java8.SwingHello -name SimpleTest
      Building DMG package for SimpleTest
      "Adding modules: [] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.Exception: Empty module paths
      Config files are saved to /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler347177158922213265/macosx. Use them to customize package.
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "DMG Installer" (dmg) failed to produce a bundle.
              at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(jdk.packager/PackagerLib.java:373)
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(jdk.packager/PackagerLib.java:329)
              at com.sun.javafx.tools.packager.Main.main(jdk.packager/Main.java:484)



      3. Simple Normal Jar (Non Modular Jar) + "-native image" execution
      /export/home/gtee/ramesh/jdk9developerbuild/bin/javapackager -deploy -verbose -outdir outdir -outfile test -native image -srcdir jars -srcfiles swing.jar -BmainJar=swing.jar -Bclasspath=swing.jar -appclass java8.SwingHello -name SimpleTest
      Creating app bundle: /export/home/gtee/ramesh/outdir/SimpleTest.app
      "Adding modules: [] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.Exception: Empty module paths
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "Mac Application Image" (mac.app) failed to produce a bundle.
              at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(jdk.packager/PackagerLib.java:373)
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(jdk.packager/PackagerLib.java:322)
              at com.sun.javafx.tools.packager.Main.main(jdk.packager/Main.java:484)


           
      4. Simple Normal Jar (Non Modular Jar) + "native" execution
      /export/home/gtee/ramesh/jdk9developerbuild/bin/javapackager -deploy -verbose -outdir outdir -outfile test -native -srcdir jars -srcfiles swing.jar -BmainJar=swing.jar -Bclasspath=swing.jar -appclass java8.SwingHello -name SimpleTest
      Creating app bundle: /export/home/gtee/ramesh/outdir/SimpleTest.app
      "Adding modules: [] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.Exception: Empty module paths
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "Mac Application Image" (mac.app) failed to produce a bundle.
              at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(jdk.packager/PackagerLib.java:373)
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(jdk.packager/PackagerLib.java:322)
              at com.sun.javafx.tools.packager.Main.main(jdk.packager/Main.java:484)

           
                      
      5. Modular Jar + "-native image" Execution
      /export/home/gtee/ramesh/jdk9developerbuild/bin/javapackager -deploy -verbose --module-path modjars -m com.greetings/com.greetings.App1 -outdir outdir -outfile test -native image -name SimpleTest
      Creating app bundle: /export/home/gtee/ramesh/outdir/SimpleTest.app
      "Adding modules: [com.greetings] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.ResolutionException: Module javafx.graphics not found, required by com.greetings
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "Mac Application Image" (mac.app) failed to produce a bundle.
              at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(jdk.packager/PackagerLib.java:373)
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(jdk.packager/PackagerLib.java:322)
              at com.sun.javafx.tools.packager.Main.main(jdk.packager/Main.java:484)

      stt-mac-42:ramesh gtee$ ls /export/home/gtee/ramesh/jdk9developerbuild/jmods | grep javafx.graphics
      javafx.graphics.jmod

      ISSUE: Throwing module "javafx.graphics not found", even though "javafx.graphics" is available in jmods folder, check the grep command in last statement for proof of existence of module.

      6. Modular Jar + "-native pkg" Execution
      /export/home/gtee/ramesh/jdk9developerbuild/bin/javapackager -deploy -verbose --module-path modjars -m com.greetings/com.greetings.App1 -outdir outdir -outfile test -native pkg -name SimpleTest
      Building PKG package for SimpleTest
      "Adding modules: [com.greetings] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.ResolutionException: Module javafx.graphics not found, required by com.greetings
      Config files are saved to /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler7834236222226644546/macosx. Use them to customize package.
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "PKG Installer" (pkg) failed to produce a bundle.
              at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(jdk.packager/PackagerLib.java:373)
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(jdk.packager/PackagerLib.java:329)
              at com.sun.javafx.tools.packager.Main.main(jdk.packager/Main.java:484)

      7. Modular Jar + "-native dmg" Execution
      /export/home/gtee/ramesh/jdk9developerbuild/bin/javapackager -deploy -verbose --module-path modjars -m com.greetings/com.greetings.App1 -outdir outdir -outfile test -native dmg -name SimpleTest
      Building DMG package for SimpleTest
      "Adding modules: [com.greetings] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.ResolutionException: Module javafx.graphics not found, required by com.greetings
      Config files are saved to /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler7914015027550181716/macosx. Use them to customize package.
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "DMG Installer" (dmg) failed to produce a bundle.
              at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(jdk.packager/PackagerLib.java:373)
              at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(jdk.packager/PackagerLib.java:329)
              at com.sun.javafx.tools.packager.Main.main(jdk.packager/Main.java:484)

                                      
      ISSUE: Throwing module javafx.graphics not found, even though "javafx.grphics" is available in jmods folder, check the grep command in last statement for proof of existence of module.


                      





        Attachments

          Activity

            People

            Assignee:
            mhalder Manajit Halder (Inactive)
            Reporter:
            rgangadhar Ramesh Gangadhar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: