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

[Bundlers] rpm packages fails to run after install

    Details

      Description

      When I install the basic RPM package and run it, I get only this line: "libjvm.so<no newline>" as output, though when I run just the image bundle, it runs ok.
      The binary files <image>/App1 and /opt/App1/App1 differs, while App1.cfg are the same.

      Log:
      -bash-4.1$ ant
      Buildfile: /tmp/build.xml

      fx-deploy:
      No base JDK. Package will use system JRE.
      Creating app bundle: /tmp/testBundlerWorkDir8702100521756291664/bundles/App1
      Bundler DEB Installer skipped because of a configuration problem: Can not find dpkg-deb.
      Advice to fix: Please install required packages.
        Using default package resource [menu icon] (add package/linux/App1.png to the class path to customize)
        Using default package resource [Menu shortcut descriptor] (add package/linux/App1.desktop to the class path to customize)
        Using default package resource [RPM spec file] (add package/linux/App1.spec to the class path to customize)
      Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.w75KW9
      + umask 022
      + cd /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILD
      + LANG=C
      + export LANG
      + unset DISPLAY
      + exit 0
      Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wJXso6
      + umask 022
      + cd /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILD
      + LANG=C
      + export LANG
      + unset DISPLAY
      + exit 0
      Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.0WCNQ2
      + umask 022
      + cd /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILD
      + '[' /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILDROOT/app1-1.0-1.i386 '!=' / ']'
      + rm -rf /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILDROOT/app1-1.0-1.i386
      ++ dirname /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILDROOT/app1-1.0-1.i386
      + mkdir -p /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILDROOT
      + mkdir /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILDROOT/app1-1.0-1.i386
      + LANG=C
      + export LANG
      + unset DISPLAY
      + rm -rf /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILDROOT/app1-1.0-1.i386
      + mkdir -p /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILDROOT/app1-1.0-1.i386/opt
      + cp -r /tmp/fxbundler7617964562413030333/images/linux-rpm.image/App1 /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILDROOT/app1-1.0-1.i386/opt
      + /usr/lib/rpm/check-buildroot
      + /usr/lib/rpm/redhat/brp-compress
      + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
      + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
      + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
      + /usr/lib/rpm/brp-python-bytecompile
      + /usr/lib/rpm/redhat/brp-python-hardlink
      Processing files: app1-1.0-1.i686
      Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILDROOT/app1-1.0-1.i386
      Wrote: /tmp/testBundlerWorkDir8702100521756291664/bundles/app1-1.0-1.i686.rpm
      Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.XaO8Zs
      + umask 022
      + cd /tmp/fxbundler7617964562413030333/rmpbuildroot/BUILD
      + exit 0
      Package (.rpm) saved to: /tmp/testBundlerWorkDir8702100521756291664/bundles
        Config files are saved to /tmp/fxbundler7617964562413030333/linux. Use them to customize package.
      Bundler Mac App Store Ready Bundler skipped because of a configuration problem: java.lang.NullPointerException

      BUILD SUCCESSFUL
      Total time: 24 seconds
      -bash-4.1$ /tmp/testBundlerWorkDir8702100521756291664/bundles/App1/App1 hello
      Hello World initialized!
      Argument: hello
      -Dsun.boot.class.path=/tmp/testBundlerWorkDir8702100521756291664/bundles/App1/runtime/jre/lib/resources.jar:/tmp/testBundlerWorkDir8702100521756291664/bundles/App1/runtime/jre/lib/rt.jar:/tmp/testBundlerWorkDir8702100521756291664/bundles/App1/runtime/jre/lib/sunrsasign.jar:/tmp/testBundlerWorkDir8702100521756291664/bundles/App1/runtime/jre/lib/jsse.jar:/tmp/testBundlerWorkDir8702100521756291664/bundles/App1/runtime/jre/lib/jce.jar:/tmp/testBundlerWorkDir8702100521756291664/bundles/App1/runtime/jre/lib/charsets.jar:/tmp/testBundlerWorkDir8702100521756291664/bundles/App1/runtime/jre/lib/jfr.jar:/tmp/testBundlerWorkDir8702100521756291664/bundles/App1/runtime/jre/classes
      -Dapp.preferences.id=testapp
      PASS_1
      JREVersion: 1.8.0_40-ea-b07
      -Djava.library.path=/tmp/testBundlerWorkDir8702100521756291664/bundles/App1/app:/tmp/testBundlerWorkDir8702100521756291664/bundles/App1
      -Djava.launcher.path=/tmp/testBundlerWorkDir8702100521756291664/bundles/App1
      -Dapp.preferences.id=testapp
      -bash-4.1$ sudo rpm --install --nodeps /tmp/testBundlerWorkDir8702100521756291664/bundles/app1-1.0-1.i686.rpm
      -bash-4.1$ /opt/App1/App1 hello
      libApp1 main class specified-bash-4.1$ /opt/App1/App1 hello
      libApp1 main class specified-bash-4.1$

        Attachments

          Activity

            People

            • Assignee:
              shemnon Danno Ferrin (Inactive)
              Reporter:
              dginzbur Dmitry Ginzburg (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: