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

Javapackager issues in Linux Developer Build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Incomplete
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: deploy
    • Labels:
    • Environment:
    • Subcomponent:
    • Introduced In Version:
      9
    • OS:
      generic

      Description

      Javapackager LINUX CLI Execution
      Test Cases
      1. Simple Normal Jar (Non Modular Jar) + RPM Combination

      [root@bgr-linux ramesh]# javapackager -deploy -verbose -outdir outdir -outfile test -native rpm -srcdir jars -srcfiles com.greetings_non_modular.jar -BmainJar=com.greetings_non_modular.jar -Bclasspath=com.greetings_non_modular.jar -appclass com.greetings.App1 -name SimpleTest
      Running [rpmbuild, --version]
      At least one type of shortcut is required. Enabling menu shortcut.
        Config files are saved to /tmp/fxbundler3310003698105633415/linux. Use them to customize package.
      Exception in thread "main" java.lang.StackOverflowError
      at com.oracle.tools.packager.StandardBundlerParam.setupDefaultModulePathIfNecessary(jdk.packager/StandardBundlerParam.java:876)
      at com.oracle.tools.packager.StandardBundlerParam.lambda$static$85(jdk.packager/StandardBundlerParam.java:645)
      at com.oracle.tools.packager.BundlerParamInfo.fetchFrom(jdk.packager/BundlerParamInfo.java:133)
      at com.oracle.tools.packager.StandardBundlerParam.setupDefaultModulePathIfNecessary(jdk.packager/StandardBundlerParam.java:876)
      at com.oracle.tools.packager.StandardBundlerParam.lambda$static$85(jdk.packager/StandardBundlerParam.java:645)
      at com.oracle.tools.packager.BundlerParamInfo.fetchFrom(jdk.packager/BundlerParamInfo.java:133)
      at com.oracle.tools.packager.StandardBundlerParam.setupDefaultModulePathIfNecessary(jdk.packager/StandardBundlerParam.java:876)
      at com.oracle.tools.packager.StandardBundlerParam.lambda$static$85(jdk.packager/StandardBundlerParam.java:645)
      at com.oracle.tools.packager.BundlerParamInfo.fetchFrom(jdk.packager/BundlerPa

      2. Modular Jar + Image Execution
      javapackager -deploy -verbose --module-path mods -m com.greetings/com.greetings.App1 -outdir outdir -outfile test -native image -name SimpleTest
      Creating app bundle: /root/Desktop/ramesh/outdir/SimpleTest
      "Adding modules: [com.greetings] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.ResolutionException: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "Linux Application Image" (linux.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)


      3. Modular Jar + Image Execution + Specifying "jmods" folder explicitly
      [root@bgr-linux ramesh]# javapackager -deploy -verbose --module-path mods:/root/Desktop/linuxsecond/jmods -m com.greetings/com.greetings.App1 -outdir outdir -outfile test -native image -name SimpleTest
      Creating app bundle: /root/Desktop/ramesh/outdir/SimpleTest
      "Adding modules: [com.greetings] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.ResolutionException: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "Linux Application Image" (linux.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)


      3. Modular Jar + RPM Execution
      [root@bgr-linux ramesh]# javapackager -deploy -verbose --module-path mods -m com.greetings/com.greetings.App1 -outdir outdir -outfile test -native rpm -name SimpleTest
      Running [rpmbuild, --version]
      At least one type of shortcut is required. Enabling menu shortcut.
      "Adding modules: [com.greetings] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.ResolutionException: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)
        Config files are saved to /tmp/fxbundler6899920702040914522/linux. Use them to customize package.
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "RPM Bundle" (rpm) 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)


      4. Modular Jar + strip-native-commands false + IMAGE execution
      [root@bgr-linux ramesh]# javapackager -deploy -verbose --module-path mods -m com.greetings/com.greetings.App1 -outdir outdir -outfile test -native image --strip-native-commands false -name SimpleTest
      Creating app bundle: /root/Desktop/ramesh/outdir/SimpleTest
      "Adding modules: [com.greetings] to runtime image."
      Exception: jdk.tools.jlink.plugin.PluginException: java.lang.module.ResolutionException: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "Linux Application Image" (linux.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)

        Attachments

          Activity

            People

            Assignee:
            cbensen Chris Bensen (Inactive)
            Reporter:
            rgangadhar Ramesh Gangadhar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: