--- old/src/jdk.incubator.jpackage/macosx/classes/jdk/incubator/jpackage/internal/MacAppImageBuilder.java 2020-02-26 10:29:15.913416600 -0500 +++ new/src/jdk.incubator.jpackage/macosx/classes/jdk/incubator/jpackage/internal/MacAppImageBuilder.java 2020-02-26 10:29:14.292757000 -0500 @@ -111,7 +111,15 @@ return identifier; } - return IDENTIFIER.fetchFrom(params); + identifier = IDENTIFIER.fetchFrom(params); + if (identifier != null) { + return identifier; + } + // the IDENTIFIER (above) will default to derive from + // the main-class, in case there is no main-class + // (such as runtime installer) revert to the name. + // any of these could be invalid, so check later. + return APP_NAME.fetchFrom(params); }, (s, p) -> s);