-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
None
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.
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.
- duplicates
-
JDK-8333268 Fixes for static build
- In Progress
- relates to
-
JDK-8303796 Optionally build fully statically linked JDK image
- Open