When the static launcher was introduced in [JDK-8339480](https://bugs.openjdk.org/browse/JDK-8339480), due to time and resource constraints, it was only working properly on Linux and macOS, while the Windows port compiled but did not work. Now the time has come to fix that.
Most of the changes mirrors the kind of changes that were made for Linux and macOS in JDK-8339480. There are still limitations to static builds on Windows (e.g. starting with a splashscreen), but these kind of limitations also exists on the other platforms. Note that this PR is blocked by [JDK-8346433](https://bugs.openjdk.org/browse/JDK-8346433), [JDK-8346195](https://bugs.openjdk.org/browse/JDK-8346195), [JDK-8346378](https://bugs.openjdk.org/browse/JDK-8346378), [JDK-8346383](https://bugs.openjdk.org/browse/JDK-8346383), [JDK-8346388](https://bugs.openjdk.org/browse/JDK-8346388) and [JDK-8346394](https://bugs.openjdk.org/browse/JDK-8346394), which must be integrated before this one. ------------- Commit messages: - 8346377: Properly support static builds for Windows Changes: https://git.openjdk.org/jdk/pull/22795/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22795&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8346377 Stats: 59 lines in 5 files changed: 38 ins; 4 del; 17 mod Patch: https://git.openjdk.org/jdk/pull/22795.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/22795/head:pull/22795 PR: https://git.openjdk.org/jdk/pull/22795