Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4272

Package as DMG Image (using ANT) fails with Error: Bundler "DMG Installer" (dmg) failed to produce a bundle.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.0
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:
      Mac OS X Catalina 10.15.4 with NetBeans running with jdk1.8.0_221

      Description

      Issue

      Package as DMG Image (using ANT) fails with Error: Bundler "DMG Installer" (dmg) failed to produce a bundle.

      No way to produce a native installer using NetBeans 12.0.

      NetBeans Version

      12.0 beta 3

      Steps to reproduce:

      1. Install fresh copy of 12.0 beta 3.
      2. Change netbeans.conf to point to a JDK 1.8 installation home. E.g.

      netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home"

      3 Create new Project "Java with Ant", "Java Application".

      1. Create a single Java file such as:

      package testmacdmgwithant;

      public class TestMacDMGwithAnt

      { /** * @param args the command line arguments */ public static void main(String[] args)

      { int a=1; }

      }

       

      1. Go clean and build and debug to prove it works OK.
      2. Run the .jar in the dist folder to prove it works OK.
      3. Go right click on the project and select "Package as DMG Image"

       

      End of output is:

      Launching <fx:deploy> in native packager mode...

      No base JDK. Package will use system JRE.

      No base JDK. Package will use system JRE.

      Building DMG package for TestMacOSXPackagingWithAnt

      Found more than one key matching 'Developer ID Application: '

      /Users/davidjlgradwell/NetBeansDev/TestMacOSXPackagingWithAnt/nbproject/build-native.xml:715: Error: Bundler "DMG Installer" (dmg) failed to produce a bundle.

      BUILD FAILED (total time: 10 seconds)

       No useful information in the log file.

      Notes: 

       

      1. Packaging works fine with NetBeans 11.3 with the same netbeans_jdkhome as above.
      2. Maven projects do not support Properties/Build/Deployment/Enable Native Packaging Actions in Project Menu.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              david@gradwell.com David Gradwell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: