--- old/src/jdk.incubator.jpackage/share/native/applauncher/JvmLauncher.cpp 2020-08-24 18:09:15.631523600 -0400 +++ new/src/jdk.incubator.jpackage/share/native/applauncher/JvmLauncher.cpp 2020-08-24 18:09:14.515492600 -0400 @@ -89,6 +89,11 @@ } } while (0); + do { + addArgument(_T("-Djpackage.app-path=") + + SysInfo::getProcessModulePath()); + } while (0); + // No validation of data in config file related to how Java app should be // launched intentionally. // Just read what is in config file and put on jvm's command line as is.