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

Debian policy requirement for 'Installed-Size' not set -- users get warning when installing: NetBeans built JavaFX .deb package for Ubuntu

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • None
    • deploy

      1. Create a basic JavaFX app (e.g., JavaFXApplication1), paste the task (at bottom) into build.xml
      2. Now do Clean & Build.
      3. Now find the $NB_HOME/dist/bundles/AppName.deb file and double-click it. It will open in Ubuntu Software Center (the latest Ubuntu 12.04.1 works fine to do this).
      4. Click the "Install" button in Ubuntu Software Center.

      Get this warning message (also listed in more detail at StackOverflow here: http://stackoverflow.com/questions/12658336/netbeans-javafx-build-debian-installed-size ):

      "The package is of bad quality." Details (click to open): The package doesn't provide a valid Installed-Size control field. See Debian Policy 5.6.20

      Note: The above steps *cause the warning* when performed on Ubuntu 10.04 LTS and then the .deb is installed [using Ubuntu Software Center] to Ubuntu 12.04 LTS or 12.04.1 LTS (also, the app **does not run** just crashes upon startup, when run on 12.04! Would you like me to report a separate bug on this behavior?! Or can you do that?). These steps also *cause the warning* when performed on Ubuntu 12.04 LTS and the .deb is installed to 12.04 LTS. They do **not** cause the warning when performed on Ubuntu 10.04 **AND** installed on 10.04 LTS (however, in 10.04 if you open package with GDebi and click the 'Details' tab for the .deb package it does say, "SIze: Installed-Size is not available KB"-- however, there's no warning message when you are installing with GDebi).

      It is therefore *not possible* to deliver software on Ubuntu, as no client would accept software that gives a 'bad quality' warning upon installation. Not to mention that it doesn't run at all upon startup on 64-bit systems. (Right-clicking the .jar and using Oracle Java 7 Runtime to open the application does work and app runs fine and it also runs fine from within NetBeans as well, of course.

      At least, as a workaround, could instructions be provided on how to set the 'Installed-Size' control field--using NetBeans--if this cannot be automated? This is a serious issue affecting delivery on Debian for NetBeans and JavaFX (may also happen on other Java apps as well?) Thanks for listening. :-)

      Here is the build task to use (put it right under the line that says: '<import file="nbproject/build-impl.xml"/>'):
      <target name="-post-jfx-deploy">
          <fx:deploy width="${javafx.run.width}" height="${javafx.run.height}"
                     nativeBundles="all"
                     outdir="${basedir}/${dist.dir}" outfile="${application.title}">
              <fx:application name="${application.title}"
                              mainClass="${javafx.main.class}"/>
              <fx:resources>
                  <fx:fileset dir="${basedir}/${dist.dir}" includes="*.jar"/>
              </fx:resources>
              <fx:info title="${application.title}" vendor="${application.vendor}"/>
          </fx:deploy>
      </target>

            mhowe Mark Howe (Inactive)
            duke J. Duke
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: