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

Resolve some startup failures with JDK static build support

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • core-libs

      With JDK-8307858, building 'static-libs-image' produces a full set of JDK and hotspot static libraries. The static libraries can be used to build a fully statically linking Java executable.

      https://github.com/jianglizhou/jdk/tree/static-java is a demo for building a fully statically linked 'bin/javastatic' executable.

      Some startup failures are observed when running the fully statically linked launcher executable. Those include crashes and failures related to (or caused by) loading native libraries and lookup native functions. e.g.:

      ---
      Error occurred during initialization of VM
      Failed setting boot class path.

      ---
      Error occurred during initialization of VM
      Unable to load native library: ????????????????

      This bug is created for resolving the initial failures observed during startup when running a fully statically linking Java executable. Will try regrouping the changes into smaller PRs if helpful.

            jiangli Jiangli Zhou
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: