I want to release my educational app (Java / Swing ) to the MacOS, and I'm using JDK 16.0.2 and its jpackage command line tool to build the installer/launcher.
In verbose mode, the process seems to be error-free; I get this at the conclusion:
Succeeded in building Mac DMG Package package
The installer works up to the point where I have an xxxxxxx.app (in Applications folder) and I double-click it. In the dock, the app icon appears and bounces, but control is never passed to my app's main(). There is no feedback about something wrong or unexpected.
I looked at the ActivityMonitor, and I see about 30 processes growing in response to the double-click, but they fizzle out and cease within a second or two.
SW Mfg. environment: 2021 iMac (intel) running BigSur Eclipse for Java SE (2001-3) Export "runnable jar" (jar file launches the app correctly when double clicked) JRE 16.0.2 in the build path
Has anyone encountered this type of fail-to-launch glitch where there's absolutely no indication of a problem? Is there a way to obtain verbose feedback during the execution of the app launcher? How can I debug this?
jpackage --input ~/git/DataflowGeometry/AlgoGeom_V2 --main-jar ~/DFG2D_MacOS_Manufacturing/AppJAR/DFG2D_Mac_J1602.jar --main-class ~/git/DataflowGeometry/AlgoGeom_V2/src/workspace2D/DataflowGeometry2D --dest ~/DFG2D_MacOS_Manufacturing/MacOSInstallers/DFG2D_Mac_J1602 --app-version "1.0.0" --copyright "All rights reserved Spatial Thoughtware 2022" --name DataflowGeometry2D --description "21st Century Geometry Problem-Solving Workspace" --vendor "Spatial Thoughtware" --input ~/git/DataflowGeometry/AlgoGeom_V2/src/DFG2D_AppData --java-options "-d64 -splash:$APPDIR/SplashScreenDFG2D.png" --verbose