I have just tried using the latest jpackage release on macOS, after successfully using a very old sandbox version from long ago. Two command line argument names had to be changed, but otherwise the usage appears to be the same for my simple case of building a bundled app. However, the bundled app does not run. Executing the “main” executable from the terminal produces this output:
Error: could not find libjava.dylib Error: Could not find Java SE Runtime Environment. The library exists in Contents/PlugIns/Java.runtime/Contents/Home/lib.