-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
None
-
Environment 1 (before recent 1+35 updates): NetBeans 7.2, JavaFX 2.2 (I think--how do I tell?), Apache Ant version 1.8.3 Feb 26, 2012 (reported in Options | Java | Ant tab in NetBeans), Detected JavaFX Ant API version 1.2 (in build log window in NetBeans), JDK 1.7.0_06.
Environment 2 (after recent 1+35 updates): all the above same.Also, here is my current (after recent 1+35 updates) "About NetBeans" tab (for 32-bit version running on Ubuntu 10.04):
"Product Version: NetBeans IDE 7.2 (Build 201207171143)
Java: 1.7.0_06; Java HotSpot(TM) Client VM 23.2-b09
System: Linux version 2.6.32-43-generic running on i386; UTF-8; en_US (nb)
User directory: /home/brad/.netbeans/7.2
Cache directory: /home/brad/.cache/netbeans/7.2"And here is current (after updating) "About NetBeans" tab (for 64-bit version running on Ubuntu 12.04):
"Product Version: NetBeans IDE 7.2 (Build 201207171143)
Java: 1.7.0_07; Java HotSpot(TM) 64-Bit Server VM 23.3-b01
System: Linux version 3.2.0-31-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/brad/.netbeans/7.2
Cache directory: /home/brad/.cache/netbeans/7.2"Environment 1 (before recent 1+35 updates): NetBeans 7.2, JavaFX 2.2 (I think--how do I tell?), Apache Ant version 1.8.3 Feb 26, 2012 (reported in Options | Java | Ant tab in NetBeans), Detected JavaFX Ant API version 1.2 (in build log window in NetBeans), JDK 1.7.0_06. Environment 2 (after recent 1+35 updates): all the above same. Also, here is my current (after recent 1+35 updates) "About NetBeans" tab (for 32-bit version running on Ubuntu 10.04): "Product Version: NetBeans IDE 7.2 (Build 201207171143) Java: 1.7.0_06; Java HotSpot(TM) Client VM 23.2-b09 System: Linux version 2.6.32-43-generic running on i386; UTF-8; en_US (nb) User directory: /home/brad/.netbeans/7.2 Cache directory: /home/brad/.cache/netbeans/7.2" And here is current (after updating) "About NetBeans" tab (for 64-bit version running on Ubuntu 12.04): "Product Version: NetBeans IDE 7.2 (Build 201207171143) Java: 1.7.0_07; Java HotSpot(TM) 64-Bit Server VM 23.3-b01 System: Linux version 3.2.0-31-generic running on amd64; UTF-8; en_US (nb) User directory: /home/brad/.netbeans/7.2 Cache directory: /home/brad/.cache/netbeans/7.2"
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>