--- a/src/jdk.jpackage/share/classes/jdk/jpackage/internal/StandardBundlerParam.java Tue Sep 24 13:41:16 2019 -0400
+++ b/src/jdk.jpackage/share/classes/jdk/jpackage/internal/StandardBundlerParam.java Tue Sep 24 13:43:58 2019 -0400
@@ -526,7 +526,7 @@
File image = appBuilder.getRuntimeImageDir(topImage);
// copy whole runtime, need to skip jmods and src.zip
final List<String> excludes = Arrays.asList("jmods", "src.zip");
- IOUtils.copyRecursive(image.toPath(), appBuilder.getRoot(), excludes);
+ IOUtils.copyRecursive(image.toPath(), appBuilder.getRuntimeRoot(), excludes);
// if module-path given - copy modules to appDir/mods
List<Path> modulePath =