Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8097283

[Packager] Config exception when runtime is provide via Java API

XMLWordPrintable

      When I provide the fileset by picking every file in JAVA_HOME:

              Path jreOrJdk = Paths.get(CONFIG_INSTANCE.getOtherJre());
              fileSet = new RelativeFileSet(
                      jreOrJdk.toFile(), Files.walk(jreOrJdk)
                      .map(path -> path.toFile().getAbsoluteFile())
                      .filter(File::isFile)
                      .collect(Collectors.toSet())
              );

              additionalParams.put(BundleParams.PARAM_RUNTIME, fileSet);

      Then I get the following ConfigException:

      com.oracle.tools.packager.ConfigException: Java Runtime does not include [Contents/Home/jre/lib/[^/]+/libjvm.dylib, Contents/Home/jre/lib/rt.jar]

            shemnon Danno Ferrin (Inactive)
            dzinkevi Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: