Unable to load static archive with --enable-preview

XMLWordPrintable

    • generic

      With --enable-preview option while loading static shared archive during VM startup, runtime searches for archive file named "classes_valhalla.jsa" and throws following error.

      CPROMPT>java --enable-preview -XX:+PrintSharedArchiveAndExit --version
      [0.095s][error][cds] An error has occurred while processing the shared archive file.
      [0.095s][error][cds] Unable to use shared archive.
      Error occurred during initialization of VM
      Unable to use shared archive.

      Without --enable-preview archive file "classes.jsa" is loaded successfully.

            Assignee:
            Matias Saavedra Silva
            Reporter:
            Jatin Bhateja
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: