[
https://issues.apache.org/jira/browse/NETBEANS-4272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17118736#comment-17118736
]
David Gradwell commented on NETBEANS-4272:
------------------------------------------
Apache NetBeans should be updated to use jpackage which is a part of OpenJDK
14.0.1 and works!
An example call to jpackage that NetBeans could generate would look like:
{color:#0747a6}jpackage --type dmg --app-version 0.1 --copyright "My Company
2020" --name PKB --dest /Users/davidjlgradwell/NetBeansDev/PKB/jpackageoutput
--temp /Users/davidjlgradwell/NetBeansDev/PKB/jpackagetemp --vendor "My
Company" --icon /Users/davidjlgradwell/NetBeansDev/PKB/PKB.icns --input
/Users/davidjlgradwell/NetBeansDev/PKB/dist --main-jar PKB.jar --main-class
com.gradwell.PKB.PKBStartClass --mac-signing-key-user-name "Developer ID
Application: "{color}
{color:#172b4d}This approach should work for both Ant and Maven. It would
remove the problematic dependency on JavaFX. {color}
{color:#172b4d}jpackage is described at:
[https://docs.oracle.com/en/java/javase/14/docs/specs/man/jpackage.html] {color}
> Package as DMG Image (using ANT) fails with Error: Bundler "DMG Installer"
> (dmg) failed to produce a bundle.
> ------------------------------------------------------------------------------------------------------------
>
> Key: NETBEANS-4272
> URL: https://issues.apache.org/jira/browse/NETBEANS-4272
> Project: NetBeans
> Issue Type: Bug
> Components: core
> Affects Versions: 12.0
> Environment: Mac OS X Catalina 10.15.4 with NetBeans running with
> jdk1.8.0_221
> Reporter: David Gradwell
> Priority: Major
>
> *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:*
> # Install fresh copy of 12.0 beta 3.
> # 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".
> # 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; }
> }
>
> # Go clean and build and debug to prove it works OK.
> # Run the .jar in the dist folder to prove it works OK.
> # 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:
>
> # Packaging works fine with NetBeans 11.3 with the same netbeans_jdkhome as
> above.
> # Maven projects do not support Properties/Build/Deployment/Enable Native
> Packaging Actions in Project Menu.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists